A ban on foreign investors buying urban housing in Canada starting in 2023 will be extended to Jan. 1, 2027,…