Donald Trump warned the US military remains present in the Middle East as a "real agreement" is yet to be reached.