The decline was due almost entirely to a dip in deaths from prescription opioid painkillers, the medicines that set off the epidemic of addiction that has lasted nearly two decades. Fatal overdoses involving other drugs, particularly fentanyl and methamphetamine, continued to rise.