Elon Musk tightens his grip over technologies that shape national security, social media, and artificial intelligence.