An Immigration and Customs Enforcement officer walks back to his vehicle after checking the documentation of a construction worker during a random stop in Minneapolis, Minn., on January 9. File Photo by Craig Lassig/UPI | License Photo

Aug. 28 (UPI) -- A federal appeals court on Friday ruled against a policy by the U.S. Immigration and Customs Enforcement that greatly expanded detention for migrants living in the country for years.

Under the Trump administration, ICE has changed its policies to treat people with extensive ties to the United States as still "seeking admission."

That policy shift allows the agency to subject people who have lived in the country for years to mandatory detention without bond.

On Friday, the 3rd U.S. Circuit Court of Appeals struck down the policy, marking the eighth time ICE has been rejected over this same issue in federal appeals court.