All ships have emergency generators. In 10+ years of going to sea on merchant ships I've never seen power go out for more than a half hour. Ships generally carry 30% of the main generators as a spare IE a ship that runs normally on 2 will have a third in reserve in case one of the two goes down. I'm sure if it got real bad the cruise staff would let you plug into an emergency outlet.