The venture will produce battery cells and modules at a factory that will have an annual production capacity of 40 gigawatt-hours.