Three New York residents have been arrested for plotting to join extremists fighting in Syria and two threatened to carry out attacks within the United States.