DETROIT (AP) — A judge had no authority to issue indictments in the Flint water scandal, the Michigan Supreme Court said Tuesday, wiping out charges against former Gov. Rick Snyder, his health director and seven other people.

It’s an astonishing defeat for Attorney General Dana Nessel, who took office in 2019, got rid of a special prosecutor and put together a new team to investigate whether crimes were committed when lead contaminated Flint’s water system in 2014-15.

READ MORE: Ribs RnB Music Festival Kicks Off This Weekend In Downtown Detroit

State laws “authorize a judge to investigate, subpoena witnesses, and issue arrest warrants” as a one-person grand jury, the Supreme Court said.

“But they do not authorize the judge to issue indictments,” the court said in a 6-0 opinion.

In a money-saving move, Flint managers appointed by Snyder switched the city’s water source to the Flint River. State regulators said the river water didn’t need to be treated to reduce its corrosive qualities. That was a ruinous decision: Lead from old pipes flowed through the system for 18 months in the majority-Black city.

READ MORE: Judge Says Michigan Gov. Whitmer Won't Have To Testify In Abortion Lawsuit

Snyder was charged with two misdemeanor counts of willful neglect of duty. Ex-health chief Nick Lyon and Michigan’s former chief medical executive, Dr. Eden Wells, were charged with involuntary manslaughter for nine deaths related to Legionnaires’ disease when Flint’s water system might have lacked enough chlorine to combat bacteria in the river water.

Six others were also indicted on various charges: Snyder’s longtime fixer, Rich Baird; former senior aide Jarrod Agen; former Flint managers Gerald Ambrose and Darnell Earley; former Flint public works chief Howard Croft; and Nancy Peeler, a state health department manager.

Nessel assigned Fadwa Hammoud to lead the criminal investigation, along with Wayne County prosecutor Kym Worthy, while the attorney general focused on settling lawsuits against the state.

Hammoud and Worthy turned to a one-judge grand jury in Genesee County — a century-old, rarely used method — to hear evidence in secret and get indictments against Snyder and others.

MORE NEWS: MDHHS Lifts No-Contact Recommendation In Huron River Chemical Spill

© 2022 Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten, or redistributed.