File - In this Sunday, Oct. 15, 2017 file photo, Whitefish Energy Holdings workers restore power lines damaged by Hurricane Maria in Barceloneta, Puerto Rico. A small Montana company that landed and lost a contract to restore Puerto Rico's hurricane-shattered electric grid has reached a settlement in a dispute over money it said it was owed for the work. Representatives of Montana-based Whitefish Energy Holdings and Arc American of Indiana confirmed the settlement Wednesday, Dec. 6, 2017. They declined to release details. (AP Photo/Ramon Espinosa, File)

FILE - In this Oct. 15, 2017 file photo, electrical lineman work on transmission towers in Barceloneta, Puerto Rico. A small Montana company that landed and lost a contract to restore Puerto Rico's hurricane-shattered electric grid has reached a settlement in a dispute over money it said it was owed for the work. Representatives of Montana-based Whitefish Energy Holdings and Arc American of Indiana confirmed the settlement Wednesday, Dec. 6, 2017. They declined to release details. (AP Photo/Ramon Espinosa, File)

BILLINGS, Mont. (AP) — A small Montana company that landed and lost a contract to restore Puerto Rico's hurricane-shattered electric grid reached a settlement in a dispute over money it said it was owed for the work, according to court documents.

The settlement between Montana-based Whitefish Energy Holdings and Arc American of Indiana was confirmed by representatives of both companies on Wednesday. They declined to release details.

Whitefish sued Arc in federal court on Dec. 1 for allegedly interfering with payments from the Puerto Rico Electric Power Authority, which signed a $300 million contract with Whitefish after Hurricane Maria that was later cancelled.

Whitefish spokesman Ken Luce said the lawsuit was resolved "to the mutual satisfaction of all parties."

He says the final amount owed by the power authority must still be be determined.

Court documents showed that U.S. District Judge Dana Christensen dismissed the lawsuit Tuesday.

Whitefish's contract was cancelled by Puerto Rico's governor amid concerns about overcharging and the company's ability to get power restored.

The company said Wednesday that it had completed its work in Puerto Rico with power restored to almost 66 percent of the island as of Nov. 30.