The settlement is the result of a two-year investigation that showed JUUL advertised its products to young people even though e-cigarette sales to children are illegal.