Strong earnings from Nordstrom, Macy’s and Dollar General suggest pent-up demand and a reframing of what people consider essential spending.