The funding from the bipartisan infrastructure law will go towards new, retrofitted and expanded battery and critical mineral production sites.