SALEM — A sheriff in Oregon and federal authorities are blaming each other for the case of a Mexican man who has been deported from the United States at least 13 times and who allegedly assaulted two women in Portland days after being released from jail.

The case has helped fuel the national immigration debate. Republican state lawmakers are asking Gov. Kate Brown to veto a bill passed by the Legislature that would strengthen Oregon as a sanctuary state, barring state and local agencies from asking about a person's immigration status and from disclosing information to federal officials, except in certain circumstances.

The bill was introduced at the request of Brown and Attorney General Ellen Rosenblum, a fellow Democrat. Brown still plans to sign it despite the case of Sergio Jose Martinez, who had been jailed for interfering with police and providing a false birth date and walked free on a July 17 plea deal.

A week later, he entered a sleeping 65-year-old woman's apartment, physically and sexually assaulted her, and stole her car, authorities said.

He then accosted a woman who was going into a parking garage after getting off work, threatened to kill her and bashed her head repeatedly against the concrete floor, authorities said. Martinez was rearrested after people nearby intervened and police chased him down.

U.S. Immigration and Customs Enforcement said in a statement it had asked the Multnomah County Sheriff's Office to prevent Martinez' release when his sentence was served so the agency could take him into custody. But Sheriff Michael Reese said he could not legally continue to hold Martinez on the federal agency's "immigration detainer" request.

"This terrible incident is concerning for everyone," Reese said in a statement Monday. "The Multnomah County Sheriff's Office members followed state statute and federal case law. ... We held the defendant until he could not be legally held any longer."

In 2014, a federal judge in Oregon ruled that Clackamas County, which covers part of suburban Portland, violated an immigrant's rights by keeping her in jail on a federal detainer request after her domestic violence case was settled. She sued, and settled with the county for $30,100 and legal costs. Since then, law enforcement agencies in Oregon don't heed federal detainer requests.

Oregon in 1987 became America's first sanctuary state with a law preventing law enforcement from detaining people who are in the United States illegally but have not broken other laws.