Elon Musk’s SpaceX has taken over his artificial intelligence company xAI in a merger aimed at deploying space-based data centres, the company said.