Tesla is driving up the S&P 500’s exposure to disruptive technology, with Big Tech helping to lift the U.S. stock-market benchmark to new peaks this month.