Elon Musk has repeatedly misled the public about federal spending while playing a leading role in President Donald Trump’s effort to cut that spending.