The former Packard Plant in Detroit.

Detroit's bid to restructure its debts in bankruptcy court—approved by a federal judge Tuesday—marks the beginning of a painful reckoning after decades of financial mismanagement and economic decline.

But while its bankruptcy filing is an extreme remedy, Detroit's fiscal ailments are being widely felt in cities and states across the country.