The opioid cash comes from more than a dozen drugmakers, pharmaceutical distributors, and retail pharmacies that have agreed to pay more than $50 billion over 18 years in legal settlements intended to resolve their roles in the opioid addiction crisis.