The measure came as public opinion turned sharply against high levels of immigration instituted by the Justin Trudeau government