People cheered and danced in Spain’s streets as power was restored following a massive, hours-long blackout.