WASHINGTON  The House passed legislation on Friday intended to address global warming and transform the way the nation produces and uses energy.

The vote was the first time either house of Congress had approved a bill meant to curb the heat-trapping gases scientists have linked to climate change. The legislation, which passed despite deep divisions among Democrats, could lead to profound changes in many sectors of the economy, including electric power generation, agriculture, manufacturing and construction.

The bill’s passage, by 219 to 212, with 44 Democrats voting against it, also established a marker for the United States when international negotiations on a new climate change treaty begin later this year.

At the heart of the legislation is a cap-and-trade system that sets a limit on overall emissions of heat-trapping gases while allowing utilities, manufacturers and other emitters to trade pollution permits, or allowances, among themselves. The cap would grow tighter over the years, pushing up the price of emissions and presumably driving industry to find cleaner ways of making energy.