Donald Trump has issued a demand to Ukraine in which Kyiv guarantees supplies of rare earth minerals to the US as payment for war aid.