A coalition of civil rights groups agreed to end its challenge of Arizona's landmark 2010 immigration law in a deal in which the state issued guidelines on how police officers must enforce the law's most contentious section.
The agreement unveiled Thursday ends the last of seven challenges to the law that was criticized for requiring officers, while enforcing other laws, to question the immigration status of people suspected of being in the country illegally.
Courts barred enforcement of other sections of the law, but the questioning requirement was ultimately upheld by the U.S. Supreme Court, despite racial profiling concerns raised by critics of the statute.
The enforcement guidelines, issued by Arizona Attorney General Mark Brnovich's office, include a requirement that officers document the reasons for their suspicion that a particular person is in the country illegally.
The guidelines say local and state officers generally lack the power to detain people for civil immigration violations and forbid officers from prolonging traffic stops and detentions solely for the purpose of verifying a person's immigration status.
Officers would have the discretion not to check people's immigration status if doing so prolongs detentions, hinders investigations or isn't practical because of emergencies, the unavailability of backup officers and other factors.
Opponents of the law said the changes bring accountability to the enforcement of the statute and said the law is now a watered down version of what it once was.
Arizona Attorney General Mark Brnovich emphasized in a statement that the agreement means the questioning requirement remains in the law.
"Our goal while negotiating this settlement was to find a common sense solution that protects Arizona taxpayers while helping our great state move forward," Brnovich said.
Cecillia Wang, one of the lawyers who pressed the challenge, said the requirement that officers document the reasons for questioning people about their immigration status brings accountability to the law.
"It gives us the hook to investigate cases where a cop actually does cross the line," Wang said.
The law grew out of a movement formed a decade ago over Arizona's frustrations with federal enforcement of the state's border with Mexico. Proponents of toughening enforcement wanted local police officers to break from tradition and start confronting illegal immigration.
When the law was passed in 2010, it touched off a national furor with supporters calling for similar legislation for their own states and detractors calling for an economic boycott of Arizona.
In the end, the courts barred enforcement of the law's requirement that immigrants carry registration papers. It also blocked enforcement of a provision aimed at immigrants that prohibited people blocking traffic when offering or seeking day-labor services on streets.
As part of the agreement, the state also agreed to pay $1.4 million in attorney fees and other costs to the coalition.
The coalition agreed to drop its appeal of a September 2015 lower-court decision that dismissed the coalition's challenge and concluded the law's critics failed to show police would enforce the law differently for Latinos than it would for people of other ethnicities.
Several of Arizona's other immigration laws have been thrown out by the courts in recent years.
The state's immigrant smuggling ban was struck down in 2014 after a judge concluded it conflicted with the federal government's immigration powers.
A voter-approved law that denied bail to immigrants who are in the U.S. illegally and charged with certain crimes was thrown by an appeals court that ruled in 2014 that it violated due-process rights by imposing punishment before trial.