Musk suffered worst defeat possible in legal battle against OpenAI