Tesla will enter the S&P 500 on December 21 following months of speculation.