Retail giant Wal-Mart Stores has agreed to settle a pending discrimination lawsuit in the US, which the company denies.