WORTHINGTON, Minn. (AP) — A Minnesota judge has issued a temporary restraining order that bars the Nobles County Sheriff’s Office from relying on arrest warrants from immigration officials to keep individuals detained.

The Minnesota chapter of the American Civil Liberties Union sued Nobles County this year, alleging the sheriff didn’t release some immigrants from jail when required, then re-arrested them for Immigrations and Customs Enforcement.

READ MORE: Most People Are Looking Forward To Holiday 'Firsts' This Year

An attorney for the county says it doesn’t arrest people for ICE.

But Nobles County has a contract to house ICE detainees and transitions into ICE custody were done if paperwork was in order.

READ MORE: Dalvin Cook To Undergo MRI For Shoulder Injury

Friday’s order says the county can’t rely on ICE arrest warrants because they aren’t signed by a judge.

This means that now, the county must release individuals and an ICE official must re-arrest them if they are to be placed in federal custody.

The county is appealing.

MORE NEWS: Cyber Monday Means Busy Day For Twin Cities Amazon Workers

(© Copyright 2018 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.)