The agreement with Proctor & Gamble mirrors last year's settlement between the state and Colgate-Palmolive.