Tesla agreed to invest about $2B in xAI as part of the startup’s $20B funding round, expanding its exposure to AI while regulatory risks remain in focus.