U.S. President Donald J. Trump speaks to the media before he departs the White House for California, where he is scheduled to view damage from that state's wildfires, in Washington, DC, USA, 17 November 2018. Seventy-four people have been killed and more than 1,000 people are missing due to multiple devastating fires across the state. The President spoke about the investigation into Jamal Khashoggi's murder, the Mueller investigation, and the migrant caravan approaching the southern border. Credit: Jim LoScalzo / Pool via CNP | usage worldwide Photo by: Jim LoScalzo/picture-alliance/dpa/AP Images
Jim LoScalzo/AP
U.S. President Donald J. Trump speaks to the media before he departs the White House for California, where he is scheduled to view damage from that state's wildfires, in Washington, DC, USA, 17 November 2018. Seventy-four people have been killed and more than 1,000 people are missing due to multiple devastating fires across the state. The President spoke about the investigation into Jamal Khashoggi's murder, the Mueller investigation, and the migrant caravan approaching the southern border. Credit: Jim LoScalzo / Pool via CNP | usage worldwide Photo by: Jim LoScalzo/picture-alliance/dpa/AP Images
Now playing
00:44
Judge bars Trump administration's asylum rules
U.S. President Joe Biden speaks from the Treaty Room in the White House about the withdrawal of U.S. troops from Afghanistan on April 14, 2021 in Washington, DC. President Biden announced his plans to pull all remaining U.S. troops out of Afghanistan by September 11, 2021 in a final step towards ending America's longest war.
Andrew Harnik/Pool/Getty Images
U.S. President Joe Biden speaks from the Treaty Room in the White House about the withdrawal of U.S. troops from Afghanistan on April 14, 2021 in Washington, DC. President Biden announced his plans to pull all remaining U.S. troops out of Afghanistan by September 11, 2021 in a final step towards ending America's longest war.
Now playing
01:03
Biden: It's time to end the forever war
Kinzinger
CNN
Kinzinger
Now playing
05:56
What Republican lawmaker fears after US troops leave Afghanistan
CNN
Now playing
02:45
Sen. Bernie Sanders: Trump was right about this
Rep. Matt Gaetz, R-Fla., questions witnesses during a House Armed Services Committee hearing on Capitol Hill, Wednesday, April 14, 2021, in Washington.
Manuel Balce Ceneta/AP
Rep. Matt Gaetz, R-Fla., questions witnesses during a House Armed Services Committee hearing on Capitol Hill, Wednesday, April 14, 2021, in Washington.
Now playing
02:59
Women detail late-night parties with Gaetz
One shot doses of the Johnson & Johnson COVID-19 vaccine are prepared at a clinic targeting immigrant community members on March 25, 2021 in Los Angeles, California.  The clinic, run by the St. John's Well Child and Family Center, estimates it has vaccinated more than 100,000 people in the Los Angeles area amid reports of two undocumented women who were refused coronavirus vaccinations in Orange County Rite Aid stores. Rite Aid has called the refusals mistakes in a written statement.  (Photo by Mario Tama/Getty Images)
Mario Tama/Getty Images
One shot doses of the Johnson & Johnson COVID-19 vaccine are prepared at a clinic targeting immigrant community members on March 25, 2021 in Los Angeles, California. The clinic, run by the St. John's Well Child and Family Center, estimates it has vaccinated more than 100,000 people in the Los Angeles area amid reports of two undocumented women who were refused coronavirus vaccinations in Orange County Rite Aid stores. Rite Aid has called the refusals mistakes in a written statement. (Photo by Mario Tama/Getty Images)
Now playing
02:48
These unlikely events are still more likely than a blood clot after the J&J vaccine
U.S. Marines conduct an operation to clear a village of Taliban fighters in July 2009 in Mian Poshteh, Afghanistan.
Joe Raedle/Getty Images
U.S. Marines conduct an operation to clear a village of Taliban fighters in July 2009 in Mian Poshteh, Afghanistan.
Now playing
03:19
Biden to announce Afghanistan withdrawal by September 11
roger wicker
CNN
roger wicker
Now playing
04:52
Sen. Wicker on Biden's infrastructure plan: Not ruling out tax hike
Representative Matt Gaetz (R-FL) arrives for a House Armed Services Subcommittee hearing with members of the Fort Hood Independent Review Committee on Capitol Hill on December 9, 2020 in Washington, DC.
Samuel Corum/Getty Images
Representative Matt Gaetz (R-FL) arrives for a House Armed Services Subcommittee hearing with members of the Fort Hood Independent Review Committee on Capitol Hill on December 9, 2020 in Washington, DC.
Now playing
03:02
Sources say Gaetz was denied meeting with Trump
CNN
Now playing
07:27
CNN anchor pushes back on Texas state lawmaker's defense of voting bill
CNN
Now playing
01:12
Tapper asks Buttigieg for infrastructure plan timeline
Now playing
02:48
GOP governor calls Trump's RNC remarks 'divisive'
WASHINGTON, D.C. - APRIL 19, 2018:  The U.S. Supreme Court Building in Washington, D.C., is the seat of the Supreme Court of the United States and the Judicial Branch of government. (Photo by Robert Alexander/Getty Images)
Robert Alexander/Getty Images
WASHINGTON, D.C. - APRIL 19, 2018: The U.S. Supreme Court Building in Washington, D.C., is the seat of the Supreme Court of the United States and the Judicial Branch of government. (Photo by Robert Alexander/Getty Images)
Now playing
02:39
SCOTUS blocks California Covid restriction on religious activities
rep jim clyburn georgia voting law jim crow sot sotu vpx_00000000.png
rep jim clyburn georgia voting law jim crow sot sotu vpx_00000000.png
Now playing
02:13
Rep. Clyburn blasts GA voting law: It's the 'new Jim Crow'
Gaetz speaks to members of the media outside the hearing Michael Cohen, former attorney and fixer for President Donald Trump, testifies at before the House Committee on Oversight and Reform at Rayburn House Office Building February 27, 2019 on Capitol Hill in Washington, DC. Last year Cohen was sentenced to three years in prison and ordered to pay a $50,000 fine for tax evasion, making false statements to a financial institution, unlawful excessive campaign contributions and lying to Congress as part of special counsel Robert Mueller's investigation into Russian meddling in the 2016 presidential elections.
Alex Wong/Getty Images
Gaetz speaks to members of the media outside the hearing Michael Cohen, former attorney and fixer for President Donald Trump, testifies at before the House Committee on Oversight and Reform at Rayburn House Office Building February 27, 2019 on Capitol Hill in Washington, DC. Last year Cohen was sentenced to three years in prison and ordered to pay a $50,000 fine for tax evasion, making false statements to a financial institution, unlawful excessive campaign contributions and lying to Congress as part of special counsel Robert Mueller's investigation into Russian meddling in the 2016 presidential elections.
Now playing
06:11
'Bombastic, antagonistic, unapologetic': A look at Gaetz's political career
Former House Speaker John Boehner attends a ceremony to unveil a portrait of himself on Capitol Hill, Tuesday, Nov. 19, 2019 in Washington.
Michael A. McCoy/AP
Former House Speaker John Boehner attends a ceremony to unveil a portrait of himself on Capitol Hill, Tuesday, Nov. 19, 2019 in Washington.
Now playing
02:42
Boehner says Republican colleague held 10-inch knife to his throat outside House floor
(CNN) —  

In an order laced with language accusing President Donald Trump of attempting to rewrite immigration laws, a federal judge based in San Francisco temporarily blocked the government late Monday night from denying asylum to those crossing over the southern border between ports of entry.

Judge Jon S. Tigar of the US District Court for the Northern District of California said that a policy announced November 9 barring asylum for immigrants who enter outside a legal check point ‘“irreconcilably conflicts” with immigration law and the “expressed intent of Congress.”

“Whatever the scope of the President’s authority, he may not rewrite the immigration laws to impose a condition that Congress has expressly forbidden,” Tigar wrote, adding that asylum seekers would be put at “increased risk of violence and other harms at the border” if the administration’s rule is allowed to go into effect.

The Department of Homeland Security and Justice Department slammed the ruling and the lawsuit, calling them both “absurd.”

“Our asylum system is broken, and it is being abused by tens of thousands of meritless claims every year. … It is absurd that a set of advocacy groups can be found to have standing to sue to stop the entire federal government from acting so that illegal aliens can receive a government benefit to which they are not entitled,” Homeland Security spokeswoman Katie Waldeman and Justice Department spokesman Steven Stafford said in a statement.

The temporary restraining order is effective nationwide and will remain in effect until December 19, when the judge has scheduled another hearing, or further order of the court.

The order is the latest setback for the administration that has sought to crack down on what it says are flaws in the immigration system, and it is a victory for the American Civil Liberties Union, the Southern Poverty Law Center and other groups who argued it is illegal to block someone based on how they entered the country.

Now a key question looms: What impact will the judge’s decision have in the coming days at the US-Mexico border, where Trump has deployed thousands of troops as large groups of migrants seeking asylum head toward the United States?

More than 2,000 Central American migrants arrived in the border city of Tijuana in recent days, and about 3,000 more migrants are estimated to be in Mexicali, Mexico, another border city about 100 miles away, UN High Commissioner for Refugees spokeswoman Francesca Fontanini said.

In recent days, administration officials have maintained that there is a crisis at the border and that abuses in asylum claims forced them implement new measures.

Immigrant rights groups, who argue the administration is creating a crisis at the border to score political points, praised the judge’s ruling.

“This is a critical step in fighting back against President Trump’s war on asylum seekers,” said Melissa Crow, senior supervising attorney at the Southern Poverty Law Center.

In their lawsuit, immigrants advocates argued it was illegal to block someone from seeking asylum based on how they entered the country, and that the Trump administration also violated the Administrative Procedure Act by not providing public notice or comment on its new asylum rule.

“This ban is illegal, will put people’s lives in danger and raises the alarm about President Trump’s disregard for separation of powers,” said Lee Gelernt, deputy director of the ACLU’s Immigrant Rights Project and the lead attorney in the case.

“There is no justifiable reason to flatly deny people the right to apply for asylum, and we cannot send them back to danger based on the manner of their entry,” he said.

The Justice Department and the Department of Homeland Security argued that the President has the right to suspend entry by individuals into the United States if he determines it to be in the national interest.

“As the Supreme Court affirmed this summer, Congress has given the President broad authority to limit or even stop the entry of aliens into this country. Further, asylum is a discretionary benefit given by the Executive Branch only when legal conditions are met and a favorable exercise of discretion is warranted,” Waldman and Stafford said in the joint statement from the departments. “It is lawful and appropriate that this discretionary benefit not be given to those who violate a lawful and tailored presidential proclamation aimed at controlling immigration in the national interest.

Following the ruling, some top Democrats called on the Trump administration to work with Congress on immigration reforms.

“Once again, the courts have been forced to step in and preserve the rule of law. No one, including the President, can rewrite the nation’s immigration laws on their own,” Reps. Jerrod Nadler, the top Democrat on the House Judiciary Committee, and Zoe Lofgren, the top Democrat on the Subcommittee on Immigration and Border Security, said in a joint statement.

Earlier this month, the President issued a proclamation referring to “large, organized groups” who were traveling through Mexico and “reportedly intend to enter the United States unlawfully or without proper documentation and to seek asylum.”

It said that those seeking entry can only do so temporarily at recognized ports of entry to allow for “orderly processing” and denied entry to those at any other location along the southern border.

“But aliens who enter the United States unlawfully through the southern border in contravention of this proclamation will be ineligible to be granted asylum,” the President wrote.

“The arrival of large numbers of aliens will contribute to the overloading of our immigration and asylum system and to the release of thousands of aliens into the interior of the United States,” the proclamation read.