The president resisted pressure from G-7 leaders and politicians to officially push back the deadline to withdraw U.S. forces, citing the increasing risk of trouble from the Taliban and ISIS-K.