A court in Pennsylvania has thrown out a US$727m chocolate price-fixing lawsuit against Hershey, Mars and Nestle.