President Bush on Tuesday signed legislation to extend the African Growth and Opportunity Act, a move that ends months of uncertainty over a provision to use third-country yarn and fabric that was due to expire this September.