Apple’s profits nearly doubled in the latest quarter. The pandemic has been a windfall for Apple and its peers, as people buy even more gadgets to work, study and socialize.