A widespread power outage hit Spain and Portugal, affecting millions of people who live across Europe's Iberian Peninsula.