The case is a reminder of how much of Musk’s wealth comes from taxpayers. His companies have government contracts worth hundreds of millions of dollars a year.