The largest municipal bankruptcy in U.S. history is nearing an end. Jefferson County, Alabama has been saddled with more than $4.2 billion of debt. Today in Birmingham, a federal bankruptcy judge began reviewing a tentative agreement in the case.

From member station WBHM, Andrew Yeager reports.

ANDREW YEAGER, BYLINE: When Jefferson County filed for bankruptcy a year-and-a-half ago, County Commissioner Joe Knight expressed relief the decision had been made. Today, he's more upbeat.

JOE KNIGHT: You know, I think we've finally got the rudder set now. We've got the compass in the right direction and now we're going to work to get out of this thing.

YEAGER: Knight stands on a busy street corner in downtown Birmingham, just outside the building where a federal bankruptcy judge heard the outline of a deal between the county and numerous creditors. That deal would erase about $1.2 billion from the debt. Meanwhile, county residents would see their sewer rates rise. Getting to this point was years in the making.

The whole situation began when the county borrowed money to fix an aging sewer system. Those deals were rolled into complex financial transactions which left the county unable to pay when the economy soured. Corruption surrounded the agreements, with several county officials going to prison. After years of negotiating with creditors, county leaders felt municipal bankruptcy was the only option.

Since the filing, Commissioner Joe Knight says the county has spent around $20 million in legal fees. But he says the county comes out $250 million ahead of what was being discussed pre-bankruptcy. It was worth it, he says.

KNIGHT: To spend 20 to save the taxpayers and the rate payers a couple hundred, yeah, I think so.

YEAGER: The agreement still must be approved by creditors and the bankruptcy judge. The county's lead attorney, Kenneth Klee, hopes that'll happen this fall with Jefferson County leaving bankruptcy in December. He believes the county won't have any problem refinancing the remaining debt.

KENNETH KLEE: This case will have more data than any other prospectus on Wall Street. The numbers will have been vetted six ways from Sunday.

YEAGER: One of the biggest names on Wall Street is already involved in the deal. JP Morgan Chase holds about $1.2 billion of the disputed sewer debt. They're giving up more than two-thirds of that in the plan. But former bank officials there were involved in questionable financing that contributed to the bankruptcy.

Robert Brooks is a finance professor at the University of Alabama.

ROBERT BROOKS: I think any reasonable person would not come to the conclusion they're just really nice people. When you inflict harm you have to make it right.

YEAGER: Jefferson County still has a lawsuit against JP Morgan Chase in state court, but Brooks says that would probably end with this bankruptcy deal. So while county officials went to jail, no one from the financial industry has.

BROOKS: I don't think we need to have a too big to go to jail institution in our country.

YEAGER: Brooks says if the bank's financial harm to the county totals more than its concession, today's deal might not look good enough. But we'll probably never know.