The House of Representatives passed legislation on Wednesday to prevent a president from ordering broad bans on travel into the U.S., a targeted attack on executive authority following former President Donald Trump’s ban on travel from mostly Muslim-majority nations.