The three largest U.S. drug distributors and drugmaker Johnson & Johnson agreed to pay $590 million to resolve claims by Native American tribes that the companies fueled an opioid epidemic in their communities, according to court filings.

The U.S. Supreme Court cast aside pharmaceutical company Allergan Plc’s unorthodox bid to shield patents from a federal administrative court’s review by transferring them to a Native American tribe.