The funding will go towards xAI's efforts to build out its AI infrastructure and develop its Grok chatbot.