Musk had sought to oust Altman from his leadership position over claims that he and others breached their duty to OpenAI’s original nonprofit mission and unjustly enriched themselves.