Ottawa has pledged to invest $1.3 billion to beef up security at the Canada-U.S. border amid a trade war launched by U.S.