OTTAWA—Canadian Prime Minister Justin Trudeau has officially announced his intention to resign as the leader of the Liberal Party, signaling the end of an era that has seen significant political and economic developments over nearly a decade. Trudeau, who has been at the helm since 2015, will step down once a new party leader is chosen through what he described as a "robust, nationwide, competitive process."