Wal-Mart has agreed to pay up to US$54.25m to settle a class action lawsuit bought against the US retail giant by Minnesota hourly employees who claimed they were denied breaks and forced to work off the clock.