A federal judge agreed with Detroit on Wednesday and stopped any lawsuits challenging the city's bankruptcy, declaring his courtroom the exclusive venue for legal action in the largest filing by a local government in U.S. history.

The decision by U.S. Bankruptcy Judge Steven Rhodes was a major victory for Detroit, especially after an Ingham County judge last week said that Gov. Rick Snyder ignored the Michigan Constitution and acted illegally in approving the Chapter 9 filing. That ruling and others had threatened to derail the case.

Retirees had sued, claiming the bankruptcy threatened their pensions that are protected by the constitution.

"If these actions are not stopped, the city would be irreparably harmed. ... These litigants will have due process. They will have their day in court" — bankruptcy court, Detroit attorney Heather Lennox said during two hours of arguments by the city, pension funds and unions.

Courtroom jammed with lawyers, creditors

Rhodes said Wednesday there's nothing in federal law or the U.S. Constitution that gives a state court a concurrent role in a bankruptcy.

The courtroom was jammed with lawyers representing some of the thousands of creditors as well as rank-and-file city employees and retirees eager to know the outcome. Some wore T-shirts that said, "Detroit vs. Everybody."

Detroit emergency manager Kevyn Orr, who recommended bankruptcy, sat in the front row. Outside the courthouse, protesters held a banner with a message for Wall Street: "Cancel Detroit's debt. The banks owe us."

There are three lawsuits in state courts challenging the bankruptcy. They mostly focus on a provision in the Michigan Constitution that says public pensions "shall not be diminished or impaired."

Pensioners live on $19K a year

Pensions have not been frozen or reduced in the bankruptcy so far, but officials say there are shortfalls in the funds and that payouts could be at risk.

Sharon Levine, an attorney for a union that represents city workers, urged Rhodes to let those lawsuits run their course. She said there's no federal insurance for public pensions once they're broken, unlike pensions at private employers.

"Our members who participate at most are at or below $19,000 a year. There is no safety net," Levine said.

Michigan Gov. Rick Snyder signed off on Detroit's bankruptcy on July 18, calling it the only "feasible path" for a city whose population has plummeted to 700,000 from 1.8 million decades ago. Detroit's $18 billion in long-term debt has become an urban millstone.

Residents "are not getting the services they deserve and they haven't for a very long time," Snyder said Sunday. "So this can has been getting kicked down the road for decades. Enough is enough and now's the time to turn it around."

Detroit has more than double the population of Stockton, Calif., which had been the largest U.S. city to file for bankruptcy before Detroit trumped it last week.