We have an asinine judicial system which lets one lousy judge trump both houses of Congress. Whatever happened to "of the people, by the people, FOR the people".
It is not the judicial system. It is Congress that will not asert its authority. The Executive Branch could bring the issue to a head by ignoring the judge's ruling and carrying out the directives of Congress.
That would put it to the Supreme Court in a hurry.
The same could happen where judges have ordered school districts how and where to spend money. Someone needs to step in and tell the judge we do not accept your ruling, you have overstepped your authority.
Won't happen but that is what should happen.