Proposed legislation could help make American networks less vulnerable to hackers but at a cost to the privacy of individuals.