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