A court order forcing Florida to forgo $1 billion it planned to take from state workers to shore up its budget is the latest sign of how difficult it can be to reduce government-backed retirement benefits.