The suit, brought by 55 attorneys general, will help compensate victims and fund addiction treatment programmes.