"My call to every senator, as well as to every American, is this," he said. "We cannot be afraid of the future. And we must not be prisoners of the past. Don't believe the misinformation out there that suggests there is somehow a contradiction between investing in clean energy and economic growth."
Obama said the bill would create jobs, make renewable energy profitable and decrease America's dependence on foreign oil.
"It will spur the development of low-carbon sources of energy - everything from wind, solar and geothermal power to safer nuclear energy and cleaner coal," he said.
House Democratic leaders said the bill helped accomplish one of Obama's campaign promises and would make the U.S. a leader in international efforts to address climate change when negotiations take place in Copenhagen later this year.
"We passed transformational legislation, which will take us into the future," said House Speaker Nancy Pelosi, D-Calif., after the 219-212 vote.
"For some it was a very difficult vote because the entrenched agents of the status quo were out there full force, jamming the lines in their districts and here, and they withstood that," Pelosi said.
The vote marked the first time either house of Congress has passed legislation to curb global warming gases. The legislation, totaling about 1,200 pages, would require the U.S. to reduce carbon dioxide and other greenhouse gas emissions by 17 percent from 2005 levels by 2020 and by 83 percent by mid-century.
Success will be tougher in the Senate. Majority Leader Harry Reid says he wants to take up the legislation by the fall. Sixty 60 votes will be needed to overcome any Republican filibuster.
The "razor-thin vote in the House spells doom in the Senate," said Sen. James Inhofe, R-Okla., the top Republican on the Senate's environment panel.
Reid, D-Nev., was more optimistic.
"The bill is not perfect, but it is a good product for the Senate," Reid said. "Working with the president and his team, I am hopeful that the Senate will be able to debate and pass bipartisan and comprehensive clean energy and climate legislation this fall."
Supporters and opponents agreed that the legislation would lead to higher energy costs. But they disagreed on the impact on consumers.
Democrats pointed to two reports - one from the nonpartisan Congressional Budget Office and the other from the Environmental Protection Agency
- that suggested average increases would be limited after tax credits and rebates were taken into account. The CBO estimated the bill would cost an average household $175 a year, the EPA $80 to $110 a year. But Republicans and industry groups say the real figure would much higher.