His initial popularity helped Justin Trudeau survive calamities that could have sunk other Canadian politicians.