Mayor Rahm Emanuel says Chicago will continue fighting President Donald Trump’s immigration policies with a lawsuit alleging it’s illegal for the government to withhold public safety grants from so-called sanctuary cities.

RELATED: Donald Trump threatens to send the feds to Chicago—here’s what he can legally do

The federal lawsuit is expected to be filed Monday. A day earlier Emanuel said Chicago won’t “be blackmailed” into changing its values as a welcoming city.

Chicago officials say there are new qualifications for a grant requiring cities to share information with federal immigration authorities, which they allege are unconstitutional.

Chicago received over $2 million in such grants last year, which have been used for buying police vehicles.

Two law firms are helping Chicago with the case on a pro bono basis.

Federal officials threatened to withhold funding for sanctuary cities, saying they don’t comply with federal laws.

RELATED: Hundreds of protesters in Chicago let President Trump know how they really feel, by dropping their pants


Chicago Mayor Rahm Emanuel disagrees with the President’s stance on immigration, so he’s doing something about it AP Photo/Matt Marton, File
Watch the 2017 Rare Country Awards