Walmart says it has received nearly $3 billion in tariff refunds — and used some of that windfall to cut prices for consumers strained by inflation.