No, the second judge gave him a stay of removal following 8 U.S.C. § 1231(b)(3)(A).
https://storage.courtlistener.com/recap/gov.uscourts.mdd.578815/gov.uscourts.mdd.578815.11.3.pdf
That is how judicial review works, yes. The legislative branch should pass a proper law, then.