Home Depot has agreed to "hammer out" a nearly $2 million settlement in a California lawsuit accusing it of overcharging customers at checkout.