US and Afghanistan poised to sign security pact