CNN —  

A federal appeals court handed the Trump administration a partial win Friday by allowing its asylum restrictions to take effect in Texas and New Mexico.

The 9th US Circuit Court of Appeals, known for drawing the ire of President Donald Trump, dialed back a nationwide injunction that a district court had previously issued against the asylum rule.

The 9th Circuit now says the injunction can only apply to migrants claiming asylum in California and Arizona, states that fall under the Ninth Circuit’s jurisdiction. Practically, for now, that means that asylum seekers may continue to seek protection without these restrictions in California and Arizona, but asylum seekers in Texas and New Mexico will be subject to the asylum rule.

White House press secretary Stephanie Grisham said in a news release that the administration is happy that the court decided to end the nationwide injunction. However, Grisham said the injunction in California and Arizona is still overbroad, but the administration will still be applying the rule in Texas and New Mexico.

“We look forward to having the injunction lifted in its entirety on appeal so that we can protect legitimate asylum seekers, preserve resources for addressing their claims, and prevent illegal migrants who bypass regional asylum opportunities from overwhelming our asylum system,” Grisham said in the statement.

The rule, which was issued from the departments of Justice and Homeland Security in July, would prohibit migrants who have resided in or traveled through a third country from seeking asylum in the US, therefore barring migrants traveling through Mexico from being able to claim asylum and as a result, drastically limit who’s eligible for asylum.

In July, federal district judge in California blocked the rule from going into effect nationwide. Friday’s ruling means that the restrictions are still blocked in Arizona and California.

The appellate court ruled that “the district court clearly erred by failing to consider whether nationwide relief is necessary.”

The ACLU plans to “immediately” bring new evidence to the district court on why the nationwide injunction should be reinstated, according to ACLU attorney Lee Gelernt.

“The court properly refused to let the new asylum ban go into effect, though currently limited to the Ninth Circuit. We will continue fighting to end the ban entirely,” said Gelernt.

In scaling back on a district court’s nationwide injunction, the appellate court said that “other litigants” wishing to challenge the rule could do so in other courts, a move that will allow the issue to percolate in the lower courts before it might arrive at the Supreme Court.

The Justice Department declined to comment on the ruling.