From claims of safety taking a back seat to the "toxic culture" he created, OpenAI CEO Sam Altman faced a tough day in court.