Critics say the administration has undermined an agency key to protecting election infrastructure ahead of the midterms.