Elon Musk and OpenAI lawyers spar over profit caps and mission, with a judge limiting AI safety debate in the courtroom.