Updated
Join Fox News for access to this content
Plus special access to select articles and other premium content with your account - free of charge.
Please enter a valid email address.

A federal judge has blocked Texas from enforcing a new law that would make illegal immigration a state crime.

U.S. District Judge David A. Ezra of the Western District of Texas on Thursday granted a preliminary injunction that will block Texas' Senate Bill 4 from taking effect next week. The law would allow state authorities to arrest and jail illegal immigrants, and would give state judges the power to order deportations. 

In his ruling, the judge wrote that states "may not exercise immigration enforcement power except as authorized by the federal government."

Texas can appeal the decision.

TEXAS GOV. ABBOTT SIGNS BILL MAKING ILLEGAL IMMIGRATION A STATE CRIME

Federal Judge David A. Ezra

Senior U.S. District Judge David A. Ezra of the Western District of Texas on Thursday issued an injunction against Texas SB4, which would make illegal immigration a state crime. (United States District Court, District of Hawaii)

The injunction comes in response to a lawsuit by Immigration and civil rights groups against Texas after Gov. Gregg Abbott signed the law in December. 

At the signing ceremony, Abbott said the goal of the legislation was to "stop the tidal wave of illegal entry into Texas." 

Migrants sent back to Mexico by Texas National Guard

Migrants are sent back by the Texas National Guard to the Rio Grande after entering El Paso, Texas, from Ciudad Juarez, Chihuahua state, Mexico, on Feb. 8, 2024. (Justin Hamel/Bloomberg via Getty Images)

Under the law, a migrant in Texas custody could either agree to a judge's order to leave the U.S. or be prosecuted on misdemeanor charges of illegal entry. Migrants who don't comply could face arrest again under more serious felony charges.

The law is a dramatic step by Texas to police immigration. Abbott, a Republican, has repeatedly slammed the Biden administration for not doing enough to address the border crisis. Texas has bussed more than 65,000 migrants to cities across America and installed razor wire along the banks of the Rio Grande.

TEXAS HAS SPENT NEARLY $150M BUSSING MIGRANTS TO ‘SANCTUARY’ CITIES: REPORT

Greg Abbott

Texas Gov. Greg Abbott vowed to continue sending migrants to sanctuary cities until the Biden administration secures the border. (Getty Images)

Opponents have characterized the measure as the most drastic attempt by a state to crack down on immigrants since a 2010 Arizona law — which detractors called the "Show Me Your Papers" bill — was mostly struck down by the U.S. Supreme Court.

Thirty former U.S. immigration judges, who served under both Republican and Democratic administrations, signed a letter this month condemning the measure as unconstitutional.

MEXICO PRESIDENT MOCKS ABBOTT'S PLANNED MILITARY BASE CAMP ALONG TEXAS BORDER: ‘PUT AS MANY AS YOU WANT’

Ezra, a Reagan appointee who previously served as Chief Judge for the United States District Court for the District of Hawaii, said the Texas law conflicts with the U.S. Constitution and federal immigration law, "to the detriment of the United States' foreign relations and treaty obligations." 

The American Civil Liberties Union (ACLU), the Department of Justice and other groups sued Texas arguing the law is unconstitutional.

"VICTORY: A federal court just BLOCKED Texas’ anti-immigrant law #SB4 from taking effect March 5," the ACLU said on X after Ezra's decision came down. 

CLICK HERE TO GET THE FOX NEWS APP

"This is a win for Texas values, human rights, and the Constitution." 

Texas officials did not immediately release a statement on the judge's decision. 

Fox News' Bill Melugin and Fox News Digital's Bradford Betz contributed to this report.