Amazon and Apple boosted closes on Wall Street