 Justice Neil Gorsuch wrote the opinion for the 5-4 majority. Justice Brett Kavanaugh said in dissent that the court's decision will have a devastating impact on thousands of victims of the opioid epidemic.