Egypt’s Islamists driven into the arms of an old enemy