Contain Iran
Perhaps a strategy is to contain Iran after all both Iraq and Afghanistan are major border countries of Iran. And the US has presence in both Iraq and Afghanistan. Keeping Osama and the Taliban alive gives a good excuse for the US government to keep a presence in that country.