The deal with the Canadian lithium company comes as North American automakers race to secure supplies of battery materials to boost EV output.