Rex Tillerson made his first trip as secretary of state to Iraq and Afghanistan, secretly jetting in and out of countries where U.S. troops and local forces are trying to stop Sunni Muslim militant groups threatening beleaguered governments allied with Washington.