The company agreed to pay North Carolina $40 million after Juul was accused of targeting young people with deceptive and unfair marketing campaigns to attract them to use their vaping products.