Canada’s main stock index gained ground amid recent trade developments, while AI stocks weighed on Wall Street.