U.S. troops to remain in Afghanistan