The job of a judge is exactly to NOT see "what is wrong with this". Activist judges are very, very bad.
Congress, and to a lesser extent POTUS, are the parties that have voted in these laws and are controlling the agencies doing this, and have the power to change them. Judges should NOT attempt to do so. That is the very definition of what a judge does.