Seven months after launching the war on Iran, US President Donald Trump says it will end immediately after midterms.