After fighting the issue in court for years, Gov. Doug Ducey has finally agreed to issue driver’s licenses to all deferred action recipients.

In an announcement Wednesday, the state Department of Transportation said anyone who has an Employment Authorization Card issued by the Department of Homeland Security is entitled to a state license to operate a motor vehicle. The change is immediate.

The action comes as Ducey gave up trying to appeal a 2018 ruling by U.S. District Court Judge David Campbell that the state was required to issue licenses to everyone the federal government has allowed to remain this country.

It also comes years after the U.S. Supreme Court slapped down the state’s ill-fated bid to keep “dreamers” from being licensed. But Ducey insisted that the state was not obligated to issue licenses to other deferred-action recipients, like victims of domestic violence.

Gubernatorial press aide Patrick Ptak declined to comment, saying decisions on the lawsuit were being made by the state Department of Transportation. But Ducey had previously told Capitol Media Services that he wanted to pursue the litigation, even after a federal judge ruled against him.

That decision will cost taxpayers.

ADOT reports the state’s legal expenses to date of nearly $370,000. And that doesn’t count what the state may owe the National Immigration Law Center which filed suit.

The case is a spinoff of the original lawsuit filed against the state after then-Gov. Jan Brewer directed ADOT not to issue licenses to those who were part of the Deferred Action for Childhood Arrivals program enacted by the Obama administration.

Brewer argued that DACA is merely an administrative decision not to deport the dreamers. And she said DACA recipients do not meet the requirements of a 1996 state law that says licenses are available only to those whose presence in the country is “authorized by federal law.”

A federal appeals court quashed the policy, saying only the federal government can decide who is in this country legally.

One claim in that lawsuit was the state was not being fair, as it had been providing licenses for years to those in other deferred-action programs. So in its bid to justify denying licenses to dreamers, the state stopped issuing licenses to those in these other groups.

The appellate ruling ordering the state to license dreamers did not help these other deferred action recipients as they were not plaintiffs in the original lawsuit, resulting in this 2016 lawsuit.

In his ruling last year, U.S. District Court Judge David Campbell slapped the state for what he said was playing litigation games, changing its policies in an attempt at first to justify denying licenses to dreamers and, when that didn’t work, to deny licenses to other deferred-action recipients. In both cases, he said, the state was trying to decide, illegally, that it could determine who is in this country legally.

Campbell also rejected claims by Douglas Northup, the private attorney Ducey hired at state expense, that those other deferred-action recipients actually could get a license − if they produced certain other evidence.

“Indeed, when asked during oral argument where a person could go to learn of this policy and how to comply with it, defense counsel was unaware of any place where it had been publicized,” the judge wrote.