Canada's high court deals blow to treaty rights