Most politicians don't use their Twitter feed to make policy, like Trump does. If you run a widget business, and Trump makes a tweet that says, "I ban all widgets, especially widget company x", you should have the right to see that from the source.
That's the distinction the judge made - Trump uses his feed as an official government policy mouthpiece.