GREAT FALLS, Mont. (AP) — A refining company will be able to continue operating three pipelines that transport crude oil from Canada after a federal judge granted access for the final parcel whose easement had expired.

Phillips 66 had negotiated access agreements with about 600 landowners on the Blackfeet Reservation and pursued a condemnation complaint against the holdout landowners of one parcel.

The Great Falls Tribune reported Wednesday ( ) U.S. District Judge Sam Haddon ruled in favor of Phillips 66 and ordered the company to pay the landowners $1,450 in compensation.

Phillips 66 spokesman Michael Barnes says the easements for the three pipelines had expired, so the company had to re-negotiate access.

The easements were renewed for 47 years.

The company says the cost of relocating the pipelines would have been $2 million.