They get away with it because they do not have the money to properly fund the pensions.
That's what they want you to believe. I work for a very large city and Ive seen more money wasted thru mismanagement, corruption and incompetence than you would ever want to know about.