Beijing and Washington are seeking to secure shipments of African copper and cobalt for their respective clean-energy industries.