Sam Altman took the stand to defend against Elon Musk's claims that OpenAI's for-profit transition involved "looting" the charity Musk cofounded.