The White House has threatened a veto of the bill, and differences between the Senate and House must still be worked out.