Secretary of Homeland Security Kirstjen Nielsen, center in blue shirt, walks with San Diego Sector Border Patrol chief Rodney Scott, left, next to a section of the border wall fortified with razor wire Tuesday, Nov. 20, 2018, in San Diego. Nielsen says an appeal will be filed on the decision by a judge to temporarily bar the Trump administration from refusing asylum to immigrants who cross the southern border illegally. Speaking in San Diego, Nielsen said it would be filed as soon as possible. (AP Photo/Gregory Bull)

Secretary of Homeland Security Kirstjen Nielsen, center in blue shirt, walks with San Diego Sector Border Patrol chief Rodney Scott, left, next to a section of the border wall fortified with razor wire Tuesday, Nov. 20, 2018, in San Diego. Nielsen says an appeal will be filed on the decision by a judge to temporarily bar the Trump administration from refusing asylum to immigrants who cross the southern border illegally. Speaking in San Diego, Nielsen said it would be filed as soon as possible. (AP Photo/Gregory Bull)

HOUSTON (AP) — A judge has ordered the U.S. government not to enforce a ban on asylum for people who cross the southern border illegally, another court setback for the Trump administration’s efforts to impose new immigration restrictions without congressional approval.

U.S. District Judge Jon Tigar agreed Monday with legal groups that immediately sued after President Donald Trump issued a Nov. 9 proclamation saying anyone who crossed the southern border between official ports of entry would be ineligible for asylum. The administration argued that caravans of migrants approaching the southern border made the new restrictions immediately necessary.

ADVERTISEMENT

“Whatever the scope of the President’s authority, he may not rewrite the immigration laws to impose a condition that Congress has expressly forbidden,” said Tigar, a nominee of former President Barack Obama.

Trump stopped family separations at the border earlier this year after a global outcry, but it was a federal judge who ruled the administration had to reunify the families. Another judge rejected the administration’s request to try to detain migrant families in long-term facilities.

Monday’s ruling remains in effect for one month, barring an appeal. In limiting asylum, Trump used the same powers he used to impose a travel ban — the third try was ultimately upheld by the Supreme Court.

A joint statement by Homeland Security and the Justice Department said the Supreme Court had already shown the president had the legal right to restrict asylum.

“Our asylum system is broken, and it is being abused by tens of thousands of meritless claims every year,” the departments said. “We look forward to continuing to defend the Executive Branch’s legitimate and well-reasoned exercise of its authority to address the crisis at our southern border.”

Homeland Security Secretary Kirstjen Nielsen, speaking at a San Diego news conference, called the ruling “dangerous” and expressed confidence it would be overturned on appeal.

Trump on Tuesday criticized the 9th U.S. Circuit Court of Appeals, which would likely receive any appeal of Tigar’s order and has already ruled against the administration in several immigration cases. Trump called the circuit a “disgrace” and its judges “very unfair.”

Whether asylum seekers would try now to enter between official ports of entry was unclear. One immigrant waiting at the official border crossing vowed to stay in line regardless of the ruling.

“I’ve always taken the correct path, and I’m not going to do something illegal now,” said Byron Torrez, 28, of Nicaragua.

Torrez said he fled Nicaragua after someone threw acid at him during a government protest. He said he did not travel with any of the caravans.

“I think it is good that the court did this because a lot of people cross illegally, not to break the law, but because they believe you have to get to the U.S. first before requesting asylum,” he said.

The regulations were put in place in part to stop what the government says are loopholes that allow thousands of people to avoid deportation. DHS estimates around 70,000 people a year claim asylum after crossing illegally. But illegal crossings overall are well below historical highs from previous decades.

Tigar’s ruling notes that federal law says someone may seek asylum if they have arrived in the United States, “whether or not at a designated port of arrival.”

“Individuals are entitled to asylum if they cross between ports of entry,” said Baher Azmy, a lawyer for the Center for Constitutional Rights, which sued the government alongside the American Civil Liberties Union. “It couldn’t be clearer.”

Around 3,000 people from the first of the caravans have arrived in Tijuana, Mexico, across the border from San Diego, California. U.S. Customs and Border Protection said Monday that it closed off northbound traffic for several hours at the San Ysidro crossing to install movable, wire-topped barriers after reports that some migrants were planning to rush through the lanes — but none did.

As of Monday, DHS said it had referred 107 people to U.S. Citizenship and Immigration Services — people who had sought asylum between official crossings since Trump’s order went into effect. Officials didn’t say whether those people’s cases were still progressing through other, more difficult avenues left to them after the proclamation.

Administration officials said the asylum law changes were meant to funnel migrants through official border crossings for speedy rulings instead of having them try to evade such crossings on the nearly 2,000-mile (3,200-kilometer) border.

But many border crossings such as San Ysidro already have extensive wait times. People are often forced to wait in shelters or outdoor camps on the Mexican side, sometimes for weeks.

ACLU lawyer Lee Gelernt said that some people seeking asylum cross between official ports because “they’re in real danger,” either in their countries of origin or in Mexico.

“We don’t condone people entering between ports of entry, but Congress has made the decision that if they do, they still need to be allowed to apply for asylum,” he said.

The U.S. military has deployed 5,800 active-duty troops to the U.S.-Mexico border. Another 2,100 National Guard troops have also been deployed since April as part of a separate mission.

They are not allowed to detain illegal crossers.

___

Associated Press journalists Julie Watson in Tijuana, Mexico, and Jill Colvin and Colleen Long in Washington, D.C., contributed to this report.