The ruling by a panel of the 5th U.S. Circuit Court of Appeals could affect thousands of individuals who have been detained in its jurisdiction.

Four appeals courts have ruled against the administration’s policy of mandatory detention, and two have backed it. The Supreme Court could hear the issue next.

The ruling could affect thousands of individuals who have been detained in states like Texas and Louisiana