WASHINGTON (AP) ? After lengthy delays, U.S. and Afghan officials signed a security pact Tuesday to keep American troops in Afghanistan beyond year's end, aiming to prevent the country from descending into the kind of chaos that has plagued Iraq following the Pentagon's withdrawal.