Generic drugmaker settles two opioid lawsuits