(CNN) – Construction of a natural gas pipeline that was supposed to span three states is off.

Dominion energy and Duke energy say they’re canceling the Atlantic Coast Pipeline Project.

It was supposed to stretch across West Virginia, Virginia, and North Carolina but environmentalists sued to stop it.

The companies won a victory from the Supreme Court, but they say the project no longer makes sense economically.