Wal-Mart to pay $54.25 million to settle Minn. lawsuit