Municipal bonds have become an unavoidable part of local governance—and their costs divide rich towns from poor ones.