Rivian Automotive Inc. stock rallied in the extended session Wednesday after the electric-vehicle maker posted a narrower-than-expected quarterly loss and kept its 2022 production estimates intact despite saying supply-chain snags continue to be a concern.