A lengthy trial over two generic drug manufacturers’ alleged role in fueling the opioid epidemic in West Virginia came to an end this week when the U.S. affiliate of Teva Pharmaceuticals Ltd. and Allergan, now part of Abbvie Inc., agreed to a settlement totaling more than $161.5 million.