Nationwide Insurance has reached a $6 million settlement in a lawsuit that accused the company of overcharging some customers.