Federal Bankruptcy judges often don't give a damn about what goodies some contract promised, as Detroit pensioners discovered
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.