No, it doesn't make sense. The reason they had to pull out of the country is that representatives of X were about to be thrown in jail for an American business not honoring censorship edicts written by this judge. Why not Meta or Google? Because they've honored the censorship orders.
When he couldn't find representatives of X, he went after SpaceX and StarLink, even though no law allows him to do so. The judge is simply on a personal vendetta against Elon Musk solely on the basis of political alignment.
This isn't baffling, this is leftist totalitarianism at work.