Volkswagen AG formed a joint venture with a Chinese state-run company to develop electric cars. The embattled German automaker is making a decision to double down in China, as it faces an increasingly challenged global outlook following last year’s diesel-emissions cheating scandal.