Pact signed to keep US troops in Afghanistan past 2014