Canadian Prime Minister Trudeau is set to resign as Liberal Party leader, effectively ending nearly a decade in power.