House votes to rein in Trump on Iran