Trump, Putin agree on need to defeat IS in Syria