The federal government bought the project when the proposed pipeline was on the verge of falling apart before there was ever a shovel in the ground in the face of legal, political, and regulatory challenges.