Puerto Rico's Supreme Court has ruled that the governor can end the contract of Luma Energy, the private company that runs the island's power grid. The ruling gives the government a year to find a new operator. Luma says it is weighing its legal options.

Puerto Rico's Supreme Court has ruled in favor of canceling the government's contract with Luma Energy, the company that runs the island's troubled power grid, NPR and The Associated Press report.

The ruling was 5-4, the AP reports. Governor Jenniffer González-Colón had sued to end the contract nearly a year ago, keeping a campaign promise. The court gave officials a year to find a new operator, NPR and the AP report.

"Today is a day of celebration on the island," the governor said after the ruling, according to NPR. She said Luma had not kept its promises. "They have not fulfilled the requirements of the contract," she said.

The court ruled on procedural grounds, NPR reports. It found that officials had not followed local rules when they approved deals with the company. The governor said the search for a new private company will start right away, and that a public bid will be opened.

Luma took over the grid in 2021, after Hurricane Maria wrecked it in 2017, the outlets report. Blackouts are still common. The company says the grid it took over was in awful shape. In a statement, Luma said it disagrees with the ruling and is "carefully evaluating all available legal alternatives," the AP reports.

A federal board that oversees the island's finances criticized the move, the outlets report. "The Puerto Rican government's decision to terminate the contract creates enormous uncertainty at a time when the people and businesses of Puerto Rico look for stability," the board said, according to the AP. Its main concern is keeping the power on.

"There will be no chaos," the governor said, the AP reports.

What we know: Puerto Rico's Supreme Court cleared the way to end Luma Energy's contract, and the government has a year to find a new operator. What we don't know: Which company will take over, and whether Luma will appeal.