Amazon and Apple announced billions of dollars in quarterly profits on Thursday, but supply chain bottlenecks and the global chip shortage dented the…