CAIRO — When Egypt’s first elected president, Mohamed Morsi, promoted Gen. Abdul-Fattah el-Sisi to defense minister nearly a year ago, sweeping away an aging cadre of generals, many saw it as a triumph for the Islamist president, and for a fledgling democracy.