The plain-speaking mayor of one of the richest cities in the country believed it was on the brink of bankruptcy and tried to rein in excessive city expenses like pensions, with mixed success.