The Lakota/Dakota/Nakota/Sioux actually used to live in Minnesota and Wisconsin in the 1600’s. Unlike their Iroquois cousins, they were pushed out by other tribes during the fur wars instead of doing the pushing. But in response, just like their Iroquois cousins, they conducted a long invasion of other tribes’ territories, brutally killing those who didn’t flee. North and South Dakota were one of the latest places they invaded.
So yeah, either land claims last forever and Standing Rock is somebody else’s sacred land; or land claims go by conquest and negotiation, and there is no problem having a pipeline travel across land owned by other people.