Men who brought explosives to NYC protest said they were inspired by ISIS, according to federal authorities