The constitution of Cal protects the pensions of public employees. So the state has to find the money because their pensions, once approved, are ‘locked” in.
I also believe I recall judges upholding pensions in other states. But can’t cite.
Michigan Constitution also guaranteed pensions. Didn't matter. Federal bankruptcy law, and the judges who administer it, supersedes state constitution.