The grid operators of Portugal and Spain have largely restored power in the Iberian Peninsula after an “exceptional event” led to a massive blackout in both countries and part of France on Monday.