What was legal about it?

Treaties. Some are still debated in Canadian courts of law, but they are enforced by our courts..

Citizenship: First Nations have Canadian citizenship, with full legal and civil rights.

 Unlike Palestinians in the West Bank and Gaza, who are subject to Israeli military law, and criminal act by illegal settlers and the IDF who protect. 

I hope that helps.