The decision is a major blow to state and city officials, who say the Trump administration’s surge of immigration agents has terrorized residents.

Minneapolis has become a focal point of immigration enforcement actions by the Trump administration, whose agents have killed two U.S. citizens there.

A judge has barred federal immigration officers from arresting and detaining legally present refugees in Minnesota, handing the Trump administraiton a legal defeat in its…