A 2022 medical pricing deal has ended and has left a costly legacy, costing patients and taxpayers billions while industry pockets the profit.