PHOENIX — Remember the panic in the Valley four years ago?

Eleven shootings on Valley freeways in a matter of weeks. 

There were no serious injuries as law-enforcement raced to capture the shooter.

The Arizona Department of Public Safety arrested landscaper Leslie Merritt Jr.

Gov. Doug Ducey celebrated the news with an ill-fated tweet: "We got him."

That arrest would cost Arizona taxpayers millions of dollars in legal bills, 12 News has learned. 

RELATED: Former accused freeway shooter Leslie Merritt Jr. gets gun back

Merritt would spend the next seven months in jail as the suspected Freeway Shooter. 

But DPS botched the case, the charges were dropped and Merritt sued the state and Maricopa County after his release in April 2016. 

Late last week, a federal judge dismissed most of Merritt's lawsuit for false arrest. 

Judge David Campbell will allow Merritt to seek damages only for the six days he was jailed after his arrest but before he was formally charged. 

DPS, the judge ruled, didn't have "reasonably trustworthy information" to bust Merritt.

RELATED: Court docs claim DPS had little evidence linking Merritt to I-10 shootings

With the court case still alive, the state's legal bills will keep climbing.

Through a public records request, 12 News obtained a spreadsheet showing how much the state has paid out over the last three years to defend itself. The total through mid-October: $2.3 million - and counting.

Here's the irony in that bill: Merritt's attorneys' initially offered to settle the case against the state for $2.5 million.

Then-County Attorney Bill Montgomery was also sued, but he settled with Merritt for an undisclosed amount. 

RELATED: Ducey avoids deposition in lawsuit alleging false arrest