The House overwhelmingly voted Tuesday to bar people who have visited Iraq and Syria in the past five years from a program that allows visa-free entry to the U.S.