The Denver City Council has passed a measure that prevents city officials from cooperating with federal immigration officials, and blocks police from asking about an arrestee's immigration status.

The Denver Public Safety Enforcement Priorities Act, offered by Democrats, passed in a 10-0 vote Monday night and was followed by a standing ovation.

Denver will also now ignore Immigration and Customs Enforcement detainer requests, and prevent ICE agents from conducting interviews in jails without a warrant.

"Denver is sending a clear and resolute message to our community that we stand with the immigrant and refugee communities and are committed to remaining a city that is safe and welcoming for all," Mayor Michael Hancock said in a statement.

The Democrat said the ordinance helps to build "a trusting relationship with our immigrant and refugee communities that will improve the safety of our city and help everyone feel more secure."

The ordinance mandates that the Denver Sheriff Department notify ICE of pending releases, but the department will also tell inmates that ICE has been notified.

ICE called the ordinance "dangerous" and "irresponsible."

"By passing this irresponsible ordinance, the City of Denver's leadership has codified a dangerous policy that deliberately obstructs our country's lawful immigration system, protects serious criminal alien offenders, and undermines public safety," Denver's Field Operation Director Jeffrey Lynch said in a statement.

The move comes during the same week a state representative from El Paso County wrote a letter to President Trump asking for additional resources to combat illegal immigration.

"I ask that you increase ICE raids and enforcements, lock federal funds to Denver, and that the Department of Justice investigate Denver officials for any violation of any applicable immigration, anti smuggling, or obstruction of justice laws," state Rep. Dave Williams, a Republican, wrote.

The Denver City Council said it was aware it could lose federal funding with the new ordinance.

Attorney General Jeff Sessions announced new guidelines in July, that if jurisdictions do not follow, they could lose Edward Bryne Memorial Justice Assistance Grants. Denver would lose roughly $425,000 annually.

Lopez and Kniech said Denver is prepared to forgo the money, but would also be open to suing the federal government.