Investors’ rosy feelings about their stock market gains are powering spending—but it’s a different story for everyone else.