The judge overseeing hundreds of lawsuits against the opioid industry that have been consolidated in federal court said some trials may occur but that litigation is “not a substitute or replacement” for his preferred goal of a comprehensive settlement.