A man who ran for Congress last year in East Tennessee has pleaded guilty to plotting an attack on a small Muslim enclave in New York.