The latest example came when Donald Trump sided with Elon Musk over visas for high-tech workers, going against many in the MAGA base.