A landmark federal court ruling that rejected efforts to force three opioid distributors to pay up for the addiction crisis is already being cited by oil and gas companies in at least one lawsuit from local governments seeking compensation for erosion, wildfires and other effects of a warming planet.