The idea of a minerals-for-security deal is said to have come from Ukraine to appeal to Donald Trump’s business-first mindset.