Mr Trudeau resigned after about 8 years of serving as the prime minister and a decade as the Liberal Party leader.