Judges aren't there to rubber stamp whatever the president says. If the president does something unconstitutional it's up to a judge to block it. If Obama had actually tried to take everyone's guns like they thought he would (lol) a judge probably would have blocked that too.