U.S. Terrorism Agency to Tap a Vast Database of Citizens