President Trump said the U.S. will stay engaged in the 16-year-old war in Afghanistan, against his "original instinct" to pull troops out of the country.