The Canadian prime minister was celebrated for returning the country to its liberal past after he was elected in 2015, but he has since become widely unpopular.