Wal-Mart Stores has agreed to resume sharing consumer data with market research firm Nielsen.