In his lawsuit, Musk said OpenAI cofounder and president betrayed him and public by turning into profit-seeking firm.