The EU plans to offer billions of euros in state and corporate funding to aid the construction of vast battery factories capable of competing with production in the US and Asia