Appliance manufacturer Whirlpool has agreed to a settlement in a class-action lawsuit over some of its refrigerator products.