The billionaire’s involvement with the Trump administration and DOGE had deep impacts on Tesla’s bottom line. But Elon Musk was still able to turn his attention to SpaceX.