Lawmakers in the Iowa Senate have approved a bill that bans sanctuary cities.

Those cities help protect people living in the country illegally by refusing to spend local dollars enforcing federal immigration laws. But the bill says law enforcement agencies must follow orders if the feds ask them to hold undocumented immigrants.

Under the bill, Iowa would have the ability to withhold state funds for local governments that don't comply with the law.

A similar bill died in the House.