I'm not going to comment on whether the judge/panel is right or wrong, should or shouldn't have ruled as s/he/it did, etc. because I haven't read the decision, nor do I know off the top of my head what precedents and so on pertain to the matter, and, frankly, I don't feel like making the effort to find out. I will say, however, that at this rate, we're going to end up with country being "run" by the judicial rather than by the executive branch.
The judicial branch is there as a check
on that executive branch. That's kind of the whole point.
It is, but only when executives and legislators fail to exercise good judgement in taking the actions they do. Even though those elected individuals are members of one party or another, they are nonetheless the representatives of all the citizens of the U.S. When one's favorability is as low as Trump's and the Congress', good judgment, in part, includes making and enforcing policy in a win-win way, not an "I say this is best; therefore it is" way.
It all comes down to selecting the right leadership style for the situation at hand. That's what good leaders do. They don't stick to just one and apply it, come hell or high water. Given the factually fractious nature of the citizenry in the U.S. these days, a genuinely collaborative approach is what will work best.
Now, in all honesty, I don't expect too many lawyers to be savvy about the ways and means of good operations management, but I do expect a former CEO who's staffed his administration with other former CEOs to know those principles inside out and apply them to their fullest effect.
As I've said before, they "
play chess."