US President Donald Trump and Elon Musk allege federal fraud in projects relating to diversity and climate change.