 Complete the following phrase:  Following the collapse of centralized government, much of the legal system and most of the educational institutions and social services fell under the control of religious institutions, which often received significant funding and support from international charities. In 2005, some of these clerical organizations united to form the Islamic Courts Union, after the secular rebel leaders began to challenge the sharia-based judicial institutions. Wary of Islamist paramilitaries in the age of the War on Terror, the CIA funneled hundreds of thousands of dollars to secular rebel leaders inside Somalia in 2006, intending thereby to neutralize the threat of suspected members of Al Qaeda they believed to be sheltered by the ICU. This was cited by experts as a factor in the resurgence of Islamic militias in the country, prompting the latter to engage in pre-emptive strikes which routed the rebel leaders and led to the seizure of Ford by the ICU. The ICU gained control of Mogadishu and its surrounding districts in June 2006, after the Second Battle of Mogadishu. The ICU was 