The investment could inadvertently boost EVs and clean energy, as EVs are a major source of demand for lithium, cobalt, nickel, graphite and other critical minerals.