The bipartisan vote will send the legislation to Trump’s desk for his signature, which he has pledged to provide.