Elon Musk's xAI lost a trade secrets lawsuit against OpenAI after a US judge ruled the company failed to prove confidential Grok chatbot data was stolen.