A measure that would prohibit state and local police from cooperating with federal authorities who are investigating immigrants but do not have a criminal warrant has narrowly gained approval in the Senate.

The TRUST Act is similar to laws in at least five other states.

Democratic Senate President John Cullerton says that Illinois’ immigrant communities are word because of recent federal raids and anti-immigrant rhetoric.

Republicans said that national security sometimes demands short-term detention.