A federal judge threw out the Trump administration's lawsuit against Illinois, Cook County and Chicago sanctuary policies that ban assisting in immigration-related matters.

The Justice Department had sued the leaders of Illinois, Chicago and Cook County over policies that limit cooperation with federal immigration officials.

Chicago Mayor Brandon Johnson said he was pleased with the decision and the city is safer when police focus on the needs of Chicagoans.