Hunting for Hackers, N.S.A. Secretly Expands Internet Spying at U.S. Border