A GOP-controlled House panel has voted to block so-called sanctuary cities from receiving certain federal grants.

The Appropriations Committee also wants to prevent the Immigration and Customs Enforcement agency from releasing from detention people with criminal records who are in the country illegally before deporting them to their home country.

The legislation comes after the killing of Kathryn Steinle in San Francisco, allegedly at the hands of an immigrant who had been turned over to the city by ICE but was released instead of being handed back so the federal government could deport him.

It was added by the panel's Republicans to a measure funding the Department of Homeland Security for the upcoming budget year.

San Francisco is a sanctuary city that limits cooperation with the government on immigration matters.