Wednesday, a U.S. judge canceled a key permit for the Keystone XL oil pipeline.

Judge Brian Morris said the U.S. Army Corps of Engineers failed to adequately consider the pipeline's effect on endangered species such as pallid sturgeon, a massive dinosaur-like fish.

The canceled permit is yet another setback for the highly contested project that got underway less than two weeks ago following years of delays.

The ruling will not however have impact on the work that has begun at the US-Canada border crossing in Montana

According to attorneys in the case however, the ruling does not shut down work that has begun at the U.S.-Canada border crossing in Montana.

A spokesman said TC Energy was reviewing the ruling.

"We remain committed to building this important energy infrastructure project," spokesman Terry Cunha said.

TC Energy's surprise March 31 announcement that it intended to start construction amid a global economic crisis caused by the coronavirus pandemic came after the provincial government in Alberta invested $1.1 billion to jump-start the work.