After almost a decade in power and months of internal party turmoil, Justin Trudeau announced his intention to resign as Prime Minister and Liberal leader.