Drug companies settled opioid lawsuits for billions of dollars this year, and some filed for bankruptcy, but several closely watched appeals are coming up, and, for some defendants, such as pharmacies, the fight has just begun.