Elon Musk’s artificial-intelligence startup, xAI, has told investors it raised $5 billion in a funding round valuing it at $50 billion—more than twice what it was valued at several months ago. Qatar’s sovereign-wealth fund, Qatar Investment Authority, and investment firms Valor Equity Partners, …