Et flertal i Senatet i USA har stemt nej til, at fjendtlige handlinger i Iran skal godkendes i Kongressen.