Elon is selfish, just like anyone else. Ayn Rand did an excellent job of explaining this, if anyone is interested.
And, as a selfish person, he is going to side with who will benefit him.
Now, being selfish doesn't make it malicious. A mother's selfish want to make her children safe is actually a good thing.
They have both taken a stand to stop globalism. Benefits them both. And, actually slows down the total destruction of the USA.
Just my opinion.