President Trump’s nominee to lead the National Security Agency and U.S. Cyber Command, Lt. Gen. Joshua M. Rudd, told senators at a confirmation hearing on Capitol Hill that he would safeguard U.S. elections from foreign influence. Senators were told Mr. Trump has eroded federal cyberdefenses, especially for