China is the dominant player in batteries for electric vehicles and has a rapidly expanding auto industry that could challenge the world’s established carmakers as it goes global.