The bill was approved by the House with a vote of 219-212, with 8 Republicans supporting, and 44 Democrats voting against. For emphasis: 44 Democrats voting against.
According to the NYTimes it "passed despite deep divisions among Democrats." Further: "The House legislation reflects a series of concessions necessary to attract the support of Democrats."
In the Senate, Harry Reid squashed the effort (again per the NYTimes): "We know where we are,” Mr. Reid told reporters after reviewing the state of energy legislation with Senate Democrats and administration officials. “We know that we don’t have the votes."
Remember that at the time the Senate had 57 Democrats plus two independents that caucused w Democrats.
Net: climate change legislation may not happen in a Republican congress, but it also didn't happen in a Democratic congress.