The measure now heads to the Senate.