I do agree that the judge seemed to imply that congress had a chance to vote against the presidential declaration of the emergency and failed to win a veto proof majority in both houses of Congress. Congress had the power to end the declaration of emergency and blew it.
The Emergency Dec act gives congress the check on the president not the judiciary