The federal government is moving to restrict the number of temporary foreign workers in Canada, with the exception of some sectors.