Canada, U.S. reach agreement on $1-billion border security deal