The court ruled a district judge went too far when he decided Johnson & Johnson helped fuel the state’s opioid crisis in 2019. The justices said the judge misapplied the state’s public nuisance law.