Shares of Tesla stock rallied Monday after the electric vehicle maker’s CEO, Elon Musk, paid a surprise visit to Beijing over the weekend and reportedly won tentative approval for its driving software.