Jeh Johnson contended that the United States “can and should do” more to protect its election systems from cyberattacks.