In an unexpected turn, the two companies signed a deal for Anthropic to use computing resources from Elon Musk’s xAI.