(Bloomberg) -- The U.S. government’s plan to pause deportations of undocumented immigrants for 100 days starting Friday was temporarily blocked by a judge in a preliminary victory for Texas, which sued President Joe Biden’s administration just two days after it started.

Tuesday’s ruling by U.S. District Judge Drew Tipton blocks the Department of Homeland Security from immediately halting deportations. The suit was the first by a Republican-led state challenging policies by the new administration.

The judge, a Donald Trump appointee, ruled that the suit “establishes a substantial risk of imminent and irreparable harm to Texas” from the planned freeze.

“Nationwide injunctions of executive action are a topic of fierce and ongoing debate in both the courts and the legal academy,” Tipton said in his order. Even so, Tipton ruled the Biden administration “must be enjoined from executing the January 20 Memorandum’s 100-day pause on the removal of aliens in every place Defendants would have jurisdiction to implement it.”

The Department of Homeland Security didn’t immediately respond to a request for comment.

(Updates with detail from the ruling)

©2021 Bloomberg L.P.