Bill now moves to House of Representatives, then to the president’s desk