A Honduran citizen allegedly detained by Houston police for more than two hours during a traffic stop before later being deported has sued the city over its policy governing how officers interact with federal immigration agents.

The filing is the latest development in a months-long fight between immigration advocates and Mayor John Whitmire’s administration over how officers respond when they encounter residents with civil immigration warrants, 700,000 of which officials in President Donald Trump’s administration added to a federal database last year.

The lawsuit alleges Houston police stopped Erick Lopez, 29, for a traffic violation on June 17 and held him for two hours. He was deported June 27, according to the filing.

“Erick has no criminal record,” said Lopez’s attorney, Randall Kallinen, in a news release. “He was supporting a girlfriend with two children, doing tile and other flooring work.”

Earlier this year, the city council approved an ordinance that restricted Houston police officers’ interactions with U.S. Immigration and Customs Enforcement agents. The measure dictated that people with civil immigration warrants be released as soon as the original reason for the traffic stop was addressed, in keeping with legal experts’ and some police organizations’ interpretation of the Fourth Amendment.

But the council reversed that policy two weeks later, after Texas Gov. Greg Abbott threatened to pull $114 million in grant funding from the city.

Houston police have now returned to the policy they have used for most of Trump’s second term, with officers waiting a “reasonable” amount of time for ICE agents to pick up drivers detained with immigration warrants.

These warrants are civil, not criminal, documents, and do not by themselves give local police the authority to detain someone.