Trudeau’s resignation marks the end of a nine-year tenure as Canada’s leader – a period marked by both achievements and challenges