BOSTON—A unit of French advertising company Publicis Groupe SA on Friday lost a bid to dismiss a lawsuit by Massachusetts’ attorney general claiming it helped OxyContin maker Purdue Pharma LP fuel the U.S. opioid epidemic. Publicis Health had called Attorney General Maura Healey’s lawsuit an unprecedented attempt to sue an advertising agency over a manufacturer’s…