Tesla’s addition to the S&P 500 means millions more investors will own a stake in the high-valued carmaker.