> the court agreed
As I understand it, the court didn't so much agree as practically force them to accept the deal.
The whole thing was largely engineered by the Sacklers managing to get the case heard by probably the most Sackler-friendly judge in the country.