A total of 47 Republicans joined all Democrats in voting for the House bill, which passed 267-157