The Bush administration planned last year to direct the National Security Agency, which specializes in spying electronically on foreign adversaries, to take the techniques it has employed to defend military computer networks and use them to protect U.S. government civilian networks, according to…