Edgar Dewdney, Commissioner of Indian Affairs and Lieutenant Governor of the Northwest Territories