The U.S. Court of Appeals for the D.C. Circuit threw out a preliminary injunction blocking the Trump administration’s expedited removal policy for undocumented immigrants, finding the secretary of Homeland Security had authority under administrative law to vastly expand the procedures.

In a divided ruling Tuesday, Judges Patricia Millett and Senior Judge Harry Edwards ruled immigration groups challenging the policy could go to court but rejected their claims that administration officials violated the Administrative Procedure Act in changing the policy.