Trudeau announced his resignation after facing an increasing loss of support from both within his party and in the country.