A lawsuit against chocolate manufacturer The Hershey Co. alleging that an ingredient in its black licorice candies causes heart issues and other medical problems will continue in Pennsylvania federal court, a judge ruled.