Cuba’s power grid failed overnight, the government said, triggering a nationwide blackout that plunged the country into darkness for the third time in two months.