Nine Republicans join with 55 Democrats on the legislation, which the president is expected to sign before his vacation.