Millions on the Iberian Peninsula were left without power for hours on Monday. Much of Spain’s power grid was operating normally by Tuesday morning.