Trudeau government’s ‘total reversal’ of Tory policy also slashes residency requirements and gives credit for time spent as visitors or students