Republicans made a number of last-minute changes to the legislation that passed in the lower chamber early Thursday.