Russian President Vladimir Putin said he agreed with President Donald Trump's decision to withdraw US troops from Syria.