Canada's federal government is changing course on immigration with a wave of tighter caps on newcomers and new rules for permanent and non-permanent residents.