As equities soared in 2020 and consumers flocked to trading apps like Robinhood, Apple and Goldman Sachs were working on an investing feature that would let consumers buy and sell stocks. The project, which was shelved last year as the markets turned south, would have added to Apple’s suite of financial products powered by Goldman.