The legal fight between Elon Musk and OpenAI is entering a critical new phase as CEO Sam Altman prepares to testify in court.