The National Security Agency will hire a consortium of private companies to upgrade its telephone and computer networks. The N.S.A. said it was hiring a team led by Computer Sciences under a possible 10-year contract with a potential value of more than $2 billion.