The ban on WeChat and Kaspersky was made to ensure the security of government networks and data, according to Canada's Treasury Board.