SAN DIEGO — A 9th U.S. Circuit Court of Appeals panel voted unanimously Friday to suspend an order it issued earlier in the day to block a central pillar of the Trump administration’s policy requiring asylum seekers to wait in Mexico while their cases wind through U.S. courts.

The three-judge panel told the government to file written arguments by the end of Monday and for the plaintiffs to respond by the end of Tuesday.

The Justice Department said at least 25,000 asylum seekers subject to the policy are waiting in Mexico and expressed “massive and irreparable national-security of public-safety concerns.”

Government attorneys said immigration lawyers had begun demanding that asylum seekers be allowed in the United States, with one insisting that 1,000 people be allowed to enter at one location.

“The Court’s reinstatement of the injunction causes the United States public and the government significant and irreparable harms — to border security, public safety, public health, and diplomatic relations,” Justice Department attorneys wrote.

Customs and Border Protection had already begun to stop processing people under the policy.

The government’s setback earlier Friday from the three-judge panel of the 9th U.S. Circuit Court of Appeals may prove temporary if President Donald Trump’s administration appeals to the U.S. Supreme Court, which has consistently sided with Trump on immigration and border security policies. Chad Wolf, the acting Homeland Security secretary, said he was working with the Justice Department to “expeditiously appeal this inexplicable decision.”

Let our news meet your inbox. The news and stories that matters, delivered weekday mornings. This site is protected by recaptcha

The "Remain in Mexico" policy, known officially as “Migrant Protection Protocols,” took effect a year ago in San Diego and gradually spread across the southern border.

Nearly 60,000 people have been put under the program since it began on the border separating Tijuana from San Diego, according to data through December obtained by the Transactional Records Access Clearinghouse, or TRAC, at Syracuse University.

Officials believe the policy is a big reason why illegal border crossings plummeted about 80 percent from a 13-year high in May.

While advocates say the rule has put tens of thousands of asylum-seekers in harm’s way while making it more difficult for them to access protection in the U.S.

Reaction to the decisionblocking the policy was swift among immigration lawyers and advocates who have spent months fighting with the administration over a program they see as a humanitarian disaster, subjecting hundreds of migrants to violence, kidnapping and extortion in dangerous Mexican border cities. Hundreds more have been living in squalid encampments just across the border, as they wait for their next court date.

Advocates planned to have immigrants immediately cross the border and present the court decision to authorities Friday, with group Human Rights First hand-delivering a copy to U.S. Customs and Border Protection officers at a bridge connecting Laredo, Texas, and Nuevo Laredo, Mexico. Lawyers were hoping to get their clients before U.S. immigration court judges.

The decision interrupted some court cases. Immigration Judge Philip Law in San Diego delayed a final hearing on a Honduran man’s asylum case to April 17 after a government attorney couldn’t answer his questions about the effect of ruling, which temporarily halts the policy during legal challenges. The government attorney said she asked her supervisor how to address the ruling and that he didn’t know what to do either.

In El Paso, an administrator came to tell a judge of the ruling as he heard the case of a Central American mother and her partner. The couple cried when they learned they could get into the U.S. with restrictions. The couple and their two young children will be put into government detention to wait and they won’t have to return to Ciudad Juarez, Mexico.

“Do you guys understand that?” Herbert asked through an interpreter. “There was a pretty significant change in the law in the middle of your testimony.”

The Justice Department sharply criticized the ruling, saying it “not only ignores the constitutional authority of Congress and the administration for a policy in effect for over a year, but also extends relief beyond the parties before the court.” Wolf, the acting Homeland Security secretary, called the decision “grave and reckless.”

Judge William Fletcher, writing the majority, sided with the American Civil Liberties Union and other advocacy groups who argued the policy violates international treaty obligations against sending people back to a country where they are likely to be persecuted or tortured on the grounds of race, religion, ethnicity, political beliefs or membership in a particular social group.

Fletcher agreed the government set the bar too high for asylum-seekers to persuade officers that they should be exempt from the policy and didn’t provide enough time for them to prepare for interviews or consult lawyers. The judges said the government also erred by requiring asylum-seekers to express fear of returning to Mexico to be considered for an exemption, instead of asking them unprompted.

Fletcher quoted at length asylum-seekers who reported being assaulted and victimized in Mexico, saying it was “enough — indeed, far more than enough” to undercut the government’s arguments.

Fletcher was joined by Judge Richard Paez, who were both appointed to the bench by President Bill Clinton. Judge Ferdinand Fernandez, an appointee of President George H.W. Bush, dissented.

“The court forcefully rejected the Trump administration’s assertion that it could strand asylum-seekers in Mexico and subject them to grave danger,” ACLU attorney Judy Rabinovitz said. “It’s time for the administration to follow the law and stop putting asylum-seekers in harm’s way.”

Rabinovitz said Justice Department officials informed the ACLU that they will ask the Supreme Court to reinstate the policy and that the nation’s highest court could step in “very soon.” Until then, she said, no one can be returned to Mexico under the policy. It was unclear when those in Mexico with pending cases may return to the U.S. but it may be when they cross for their next hearings.