In the second day of a trial pitting Mr. Musk against OpenAI, he said he was misled by the company's chief executive, Sam Altman.