Elon Musk traveled with the president on a state visit to China, even while his case against OpenAI's Sam Altman wrapped up.