Tesla has reached an agreement with Shanghai authorities that would make it the first foreign automaker to build its own plant in China, putting it in the driver’s seat in the world’s biggest electric-vehicle market, the Wall Street Journal reported.