With the vote falling mostly along party lines, the House sent the Senate-approved bill to President Donald Trump’s desk.