Attacks by Houthi rebels in the Red Sea scared off much of the shipping that used the Suez Canal, depriving Egypt’s ailing economy of vital revenue.