US President Donald Trump, on a surprise visit to US troops in Iraq, says Islamic State is "not so dominant anymore".