Rhode Island state leaders and union officials have reached a deal to end legal wrangling over a landmark pension overhaul that has been a model for other states seeking to rein in pension costs. The proposed settlement would resolve a lawsuit by public workers and retirees unhappy with the 2011 law, which raised retirement ages and suspended pension increases. The deal must be ratified by lawmakers and unions. The biggest change includes restoring pension increases sooner than the current law. The deal would cost Rhode Island governments $24 million next year, but it maintains nearly $4 billion in future savings from the 2011 law.