The $3.8 billion project became a focus of international attention, drawing protesters from around the world, after a Native American tribe sued to block completion of the final link of the pipeline through a remote part of North Dakota.