California’s top environmental regulator lauded a trade deal that Canada struck to import electric cars from China as a win in the global effort to replace gas vehicles.