President Donald Trump has invoked a centuries-old immigration law to ramp up deportations of undocumented migrants amid signs of frustration within the administration over the pace of efforts to deliver on one of his top priorities.

A federal judge blocked Trump’s proclamation soon after, the Associated Press reported.

Trump invoked powers under the Alien Enemies Act of 1798 — a law once used to justify the internment of Japanese-Americans during World War II — in a proclamation Saturday targeting Tren de Aragua, a Venezuelan gang also designated a foreign terrorist organization.