Nebraska’s highest court approved the Keystone XL oil pipeline’s planned path through that state on Friday, resolving a permitting battle that has stretched on for more than a decade as the project has become a proxy for a national debate between environmentalists and the energy industry.

Keystone XL, which would carry crude oil from Canada to southern Nebraska, has been the subject of political maneuvering and litigation since it was proposed in 2008. The project, which was rejected by the Obama administration, was revived under President Trump.

Many Republican politicians and labor groups see Keystone XL as an economic boon, a way to create jobs and satisfy the world’s demand for oil. But for environmentalists and some Native Americans and farmers along the planned route, the pipeline is seen as a grave threat to the warming climate and to fertile land it would run through.

“At some point in our country’s history, the property rights of farmers and the sovereign rights of tribal nations have to trump big oil land grabs,” said Jane Kleeb, the longtime leader of the Keystone XL opposition in Nebraska and the chairwoman of the state’s Democratic Party.