Tesla's $2 billion investment in Elon Musk's xAI aims to bolster its shift towards AI. Musk's $1 trillion pay package is tied to performance milestones of the EV maker.