The measure now goes to Trump, but the White House has signalled the president will likely veto the bill.