The federal government is investing millions into securing a domestic supply chain for lithium saying it's a matter of national security.