The U.S. Supreme Court handed President Biden’s administration a major victory in a long-running dispute over how to enforce the nation’s immigration laws.

The case concerned the Biden administration’s attempt to set guidelines for whom immigration authorities can target for arrest and deportation. Texas and Louisiana sued to block the guidelines, arguing that they were preventing immigration authorities from doing their jobs.

The Supreme Court held by a vote of 8-1 that the states lacked standing to bring the case in the first place.