Stephen Harper’s career as a Canadian politician spanned three decades, in which he belonged to three right-leaning parties, won three election victories, and served three terms as prime minister.