Pragmatism prevailed in Egypt’s foreign policy this year, allowing some reshuffling of priorities in the region and beyond.