Who got control of Afghanistan foreign policy?