An Iraqi national allegedly plotted to carry out terror attacks in the U.S., including at a prominent synagogue in New York, prosecutors said Friday