Hardliner influences Trump's position on Iran nuclear deal and United Nations, but two later seem divided over North Korea and talks with Taliban