President Barack Obama will keep 5,500 U.S. troops in Afghanistan when he leaves office in 2017, according to senior administration officials, casting aside his promise to end the war on his watch and instead ensuring he hands the conflict off to his successor.