An agreement negotiated by a team led by California and New York attorneys general means e-cigarette maker Juul Labs will have to pay $462 million to six states and the District of Columbia during an eight-year span.