Canada will sharply lower the number of immigrants it allows into the country for the first time in years, marking a notable shift in policy for the government as it tries to remain in power.