The move poses a challenge to Beijing, which hopes EVs will help revive the country’s flagging economy.