Walmart and TJX were doing well after reporting better-than-expected quarterly results, but shares of Urban Outfitters and Dick’s Sporting Goods slumped.