For years, state governments lured workers with the promise of lucrative pensions that provide nearly the pay that employees earned on the job. But after years of budget crunches, nearly every state has revamped public retirement benefits in an effort to shrink the long-term obligations that are billions of dollars short of what is needed to cover benefits.