The company joins the small but growing ranks of profitable electric-vehicle makers in the world’s largest auto market.