The State Department will be accountable for approving U.S. cybersecurity technology sales to foreign governments, according to pending legislation.