Widely viewed as dead two months ago, the Senate-passed bill cleared the House on a 219-212 vote, with Republicans unanimous in opposition.
Congressional officials said they expected Obama to sign the bill as early as Tuesday.
A second measure — making changes in the first — was lined up for passage later in the evening. It would then go to the Senate, where Democratic leaders said they had the votes to pass it.
Crowds of protesters outside the Capitol shouted "just vote no" in a futile attempt to stop the inevitable taking place inside a House packed with lawmakers and ringed with spectators in the galleries above.
Across hours of debate, House Democrats predicted the major bill, costing $940 billion over a decade, would rank with other great social legislation of recent decades.
"We will be joining those who established Social Security, Medicare and now, tonight, health care for all Americans, said Speaker Nancy Pelosi, partner to Obama and Senate Majority Leader Harry Reid, D-Nev., in the grueling campaign to pass the legislation.
"This is the civil rights act of the 21st century," added Rep. Jim Clyburn of South Carolina, the top-ranking black member of the House.
Republicans readily agreed the bill would affect everyone in America, but warned repeatedly of the burden imposed by more than $900 billion in tax increases and Medicare cuts combined.
"We have failed to listen to America," said Rep. John Boehner of Ohio, leader of a party that has vowed to carry the fight into the fall's midterm elections for control of Congress.
The nonpartisan Congressional Budget Office said the legislation would extend coverage to 32 million Americans who lack it, ban insurers from denying coverage on the basis of pre-existing medical conditions and cut deficits by an estimated $138 billion over a decade. If realized, the expansion of coverage would include 95 percent of all eligible individuals under age 65.
Far beyond the political ramifications — a concern the president repeatedly insisted he paid no mind — were the sweeping changes the bill held in store for millions of individuals, the insurance companies that would come under tougher control and the health care providers, many of whom would face higher taxes.
For the first time, most Americans would be required to purchase insurance, and face penalties if they refused. Much of the money in the bill would be devoted to subsidies to help families at incomes of up to $88,000 a year pay their premiums.
The measure would also usher in a significant expansion of Medicaid, the federal-state health care program for the poor. Coverage would be required for incomes up to 133 percent of the federal poverty level, $29,327 a year for a family of four. Childless adults would be covered for the first time, starting in 2014.
The insurance industry, which spent millions on advertising trying to block the bill, would come under new federal regulation. They would be forbidden from placing lifetime dollar limits on policies, from denying coverage to children because of pre-existing conditions and from canceling policies when a policyholder becomes ill.
Parents would be able to keep children up to age 26 on their family insurance plans, three years longer than is now the case.
A new high-risk pool would offer coverage to uninsured people with medical problems until 2014, when the coverage expansion would go into high gear.
The final obstacle to passage was cleared a few hours before the vote, when Obama and Democratic leaders reached a compromise with anti-abortion lawmakers whose rebellion had left the outcome in doubt. The president issued an executive order pledging that no federal funds would be used for elective abortion, satisfying Rep. Bart Stupak of Michigan and a handful of like-minded lawmakers.
A spokesman for the U.S. Conference of Catholic Bishops expressed skepticism that the presidential order would satisfy the church's objections.
For the president, the events capped an 18-day stretch in which he traveled to four states and lobbied more than 60 wavering lawmakers in person or by phone to secure passage of his signature domestic issue. According to some who met with him, he warned that the bill's demise could cripple his still-young presidency.
After more than a year of political combat, Democrats piled superlative upon superlative across several hours of House debate.
Rep. Louise Slaughter of New York read a message President Franklin Roosevelt sent Congress in 1939 urging lawmakers to address the needs of those without health care, and said Democrat Harry Truman and Republican Richard Nixon had also sought to broaden insurance coverage.
Republicans attacked the bill without let-up, warning it would harm the economy while mandating a government takeover of the health care system.
"The American people know you can't reduce health care costs by spending $1 trillion or raising taxes by more than one-half trillion dollars. The American people know that you cannot cut Medicare by over one-half trillion dollars without hurting seniors," said Rep. Dave Camp, R-Mich.
"And, the American people know that you can't create an entirely new government entitlement program without exploding spending and the deficit."
Obama has said often that presidents of both parties have tried without success to achieve national health insurance, beginning with Theodore Roosevelt early in the 20th century.
The 44th president's quest to succeed where others have failed seemed at a dead end two months ago, when Republicans won a special election for a Massachusetts Senate seat, and with it, the votes to prevent a final vote.
But the White House, Pelosi and Reid soon came up with a rescue plan that required the House to approve the Senate-passed measure despite opposition to many of its provisions, then have both houses pass a fix-it measure incorporating numerous changes.
To pay for the changes, the legislation includes more than $400 billion in higher taxes over a decade, roughly half of it from a new Medicare payroll tax on individuals with incomes over $200,000 and couples over $250,000. A new excise tax on high-cost insurance policies was significantly scaled back in deference to complaints from organized labor.
In addition, the bills cut more than $500 billion from planned payments to hospitals, nursing homes, hospices and other providers that treat Medicare patients. An estimated $200 billion would reduce planned subsidies to insurance companies that offer a private alternative to traditional Medicare.
The insurance industry warned that seniors would face sharply higher premiums as a result, and the Congressional Budget Office said many would return to traditional Medicare as a result.
The subsidies are higher than those for seniors on traditional Medicare, a difference that critics complain is wasteful, but insurance industry officials argue goes into expanded benefits.
Associated Press writers Jim Kuhnhenn and Erica Werner contributed to this report.
©2010 Associated Press. All rights reserved. This material may not be published, broadcast, rewritten, or redistributed.
The 220-211 roll call Sunday by which the House passed the Reconciliation Act of 2010, including key changes to the Senate health care bill.
A "yes" vote is a vote to pass the bill.
Voting yes were 220 Democrats and 0 Republicans.
Voting no were 33 Democrats and 178 Republicans.
There are 4 vacancies in the 435-member House.
Democrats — Bright, N; Davis, N.
Republicans — Aderholt, N; Bachus, N; Bonner, N; Griffith, N; Rogers, N.
Republicans — Young, N.
Democrats — Giffords, Y; Grijalva, Y; Kirkpatrick, Y; Mitchell, Y; Pastor, Y.
Republicans — Flake, N; Franks, N; Shadegg, N.
Democrats — Berry, N; Ross, N; Snyder, Y.
Republicans — Boozman, N.
Democrats — Baca, Y; Becerra, Y; Berman, Y; Capps, Y; Cardoza, Y; Chu, Y; Costa, Y; Davis, Y; Eshoo, Y; Farr, Y; Filner, Y; Garamendi, Y; Harman, Y; Honda, Y; Lee, Y; Lofgren, Zoe, Y; Matsui, Y; McNerney, Y; Miller, George, Y; Napolitano, Y; Pelosi, Y; Richardson, Y; Roybal-Allard, Y; Sanchez, Linda T., Y; Sanchez, Loretta, Y; Schiff, Y; Sherman, Y; Speier, Y; Stark, Y; Thompson, Y; Waters, Y; Watson, Y; Waxman, Y; Woolsey, Y.
Republicans — Bilbray, N; Bono Mack, N; Calvert, N; Campbell, N; Dreier, N; Gallegly, N; Herger, N; Hunter, N; Issa, N; Lewis, N; Lungren, Daniel E., N; McCarthy, N; McClintock, N; McKeon, N; Miller, Gary, N; Nunes, N; Radanovich, N; Rohrabacher, N; Royce, N.
Democrats — DeGette, Y; Markey, Y; Perlmutter, Y; Polis, Y; Salazar, Y.
Republicans — Coffman, N; Lamborn, N.
Democrats — Courtney, Y; DeLauro, Y; Himes, Y; Larson, Y; Murphy, Y.
Republicans — Castle, N.
Democrats — Boyd, Y; Brown, Corrine, Y; Castor, Y; Grayson, Y; Hastings, Y; Klein, Y; Kosmas, Y; Meek, Y; Wasserman Schultz, Y.
Republicans — Bilirakis, N; Brown-Waite, Ginny, N; Buchanan, N; Crenshaw, N; Diaz-Balart, L., N; Diaz-Balart, M., N; Mack, N; Mica, N; Miller, N; Posey, N; Putnam, N; Rooney, N; Ros-Lehtinen, N; Stearns, N; Young, N.
Democrats — Barrow, N; Bishop, Y; Johnson, Y; Lewis, Y; Marshall, N; Scott, Y.
Republicans — Broun, N; Deal, N; Gingrey, N; Kingston, N; Linder, N; Price, N; Westmoreland, N.
Democrats — Hirono, Y.
Democrats — Minnick, N.
Republicans — Simpson, N.
Democrats — Bean, Y; Costello, Y; Davis, Y; Foster, Y; Gutierrez, Y; Halvorson, Y; Hare, Y; Jackson, Y; Lipinski, Y; Quigley, Y; Rush, Y; Schakowsky, Y.
Republicans — Biggert, N; Johnson, N; Kirk, N; Manzullo, N; Roskam, N; Schock, N; Shimkus, N.
Democrats — Carson, Y; Donnelly, Y; Ellsworth, Y; Hill, Y; Visclosky, Y.
Republicans — Burton, N; Buyer, N; Pence, N; Souder, N.
Democrats — Boswell, Y; Braley, Y; Loebsack, Y.
Republicans — King, N; Latham, N.
Democrats — Moore, Y.
Republicans — Jenkins, N; Moran, N; Tiahrt, N.
Democrats — Chandler, N; Yarmuth, Y.
Republicans — Davis, N; Guthrie, N; Rogers, N; Whitfield, N.
Democrats — Melancon, N.
Republicans — Alexander, N; Boustany, N; Cao, N; Cassidy, N; Fleming, N; Scalise, N.
Democrats — Michaud, Y; Pingree, Y.
Democrats — Cummings, Y; Edwards, Y; Hoyer, Y; Kratovil, N; Ruppersberger, Y; Sarbanes, Y; Van Hollen, Y.
Republicans — Bartlett, N.
Democrats — Capuano, Y; Delahunt, Y; Frank, Y; Lynch, Y; Markey, Y; McGovern, Y; Neal, Y; Olver, Y; Tierney, Y; Tsongas, Y.
Democrats — Conyers, Y; Dingell, Y; Kildee, Y; Kilpatrick, Y; Levin, Y; Peters, Y; Schauer, Y; Stupak, Y.
Republicans — Camp, N; Ehlers, N; Hoekstra, N; McCotter, N; Miller, N; Rogers, N; Upton, N.
Democrats — Ellison, Y; McCollum, Y; Oberstar, Y; Peterson, N; Walz, Y.
Republicans — Bachmann, N; Kline, N; Paulsen, N.
Democrats — Childers, N; Taylor, N; Thompson, Y.
Republicans — Harper, N.
Democrats — Carnahan, Y; Clay, Y; Cleaver, Y; Skelton, N.
Republicans — Akin, N; Blunt, N; Emerson, N; Graves, N; Luetkemeyer, N.
Republicans — Rehberg, N.
Republicans — Fortenberry, N; Smith, N; Terry, N.
Democrats — Berkley, Y; Titus, Y.
Republicans — Heller, N.
Democrats — Hodes, Y; Shea-Porter, Y.
Democrats — Adler, N; Andrews, Y; Holt, Y; Pallone, Y; Pascrell, Y; Payne, Y; Rothman, Y; Sires, Y.
Republicans — Frelinghuysen, N; Garrett, N; Lance, N; LoBiondo, N; Smith, N.
Democrats — Heinrich, Y; Lujan, Y; Teague, N.
Democrats — Ackerman, Y; Arcuri, N; Bishop, Y; Clarke, Y; Crowley, Y; Engel, Y; Hall, Y; Higgins, Y; Hinchey, Y; Israel, Y; Lowey, Y; Maffei, Y; Maloney, Y; McCarthy, Y; McMahon, N; Meeks, Y; Murphy, Y; Nadler, Y; Owens, Y; Rangel, Y; Serrano, Y; Slaughter, Y; Tonko, Y; Towns, Y; Velazquez, Y; Weiner, Y.
Republicans — King, N; Lee, N.
Democrats — Butterfield, Y; Etheridge, Y; Kissell, N; McIntyre, N; Miller, Y; Price, Y; Shuler, N; Watt, Y.
Republicans — Coble, N; Foxx, N; Jones, N; McHenry, N; Myrick, N.
Democrats — Pomeroy, Y.
Democrats — Boccieri, Y; Driehaus, Y; Fudge, Y; Kaptur, Y; Kilroy, Y; Kucinich, Y; Ryan, Y; Space, N; Sutton, Y; Wilson, Y.
Republicans — Austria, N; Boehner, N; Jordan, N; LaTourette, N; Latta, N; Schmidt, N; Tiberi, N; Turner, N.
Democrats — Boren, N.
Republicans — Cole, N; Fallin, N; Lucas, N; Sullivan, N.
Democrats — Blumenauer, Y; DeFazio, Y; Schrader, Y; Wu, Y.
Republicans — Walden, N.
Democrats — Altmire, N; Brady, Y; Carney, Y; Dahlkemper, Y; Doyle, Y; Fattah, Y; Holden, N; Kanjorski, Y; Murphy, Patrick, Y; Schwartz, Y; Sestak, Y.
Republicans — Dent, N; Gerlach, N; Murphy, Tim, N; Pitts, N; Platts, N; Shuster, N; Thompson, N.
Democrats — Kennedy, Y; Langevin, Y.
Democrats — Clyburn, Y; Spratt, Y.
Republicans — Barrett, N; Brown, N; Inglis, N; Wilson, N.
Democrats — Herseth Sandlin, N.
Democrats — Cohen, Y; Cooper, N; Davis, N; Gordon, Y; Tanner, N.
Republicans — Blackburn, N; Duncan, N; Roe, N; Wamp, N.
Democrats — Cuellar, Y; Doggett, Y; Edwards, N; Gonzalez, Y; Green, Al, Y; Green, Gene, Y; Hinojosa, Y; Jackson Lee, Y; Johnson, E. B., Y; Ortiz, Y; Reyes, Y; Rodriguez, Y.
Republicans — Barton, N; Brady, N; Burgess, N; Carter, N; Conaway, N; Culberson, N; Gohmert, N; Granger, N; Hall, N; Hensarling, N; Johnson, Sam, N; Marchant, N; McCaul, N; Neugebauer, N; Olson, N; Paul, N; Poe, N; Sessions, N; Smith, N; Thornberry, N.
Democrats — Matheson, N.
Republicans — Bishop, N; Chaffetz, N.
Democrats — Welch, Y.
Democrats — Boucher, N; Connolly, Y; Moran, Y; Nye, N; Perriello, Y; Scott, Y.
Republicans — Cantor, N; Forbes, N; Goodlatte, N; Wittman, N; Wolf, N.
Democrats — Baird, Y; Dicks, Y; Inslee, Y; Larsen, Y; McDermott, Y; Smith, Y.
Republicans — Hastings, N; McMorris Rodgers, N; Reichert, N.
Democrats — Mollohan, Y; Rahall, Y.
Republicans — Capito, N.
Democrats — Baldwin, Y; Kagen, Y; Kind, Y; Moore, Y; Obey, Y.
Republicans — Petri, N; Ryan, N; Sensenbrenner, N.
Republicans — Lummis, N.
©2010 Associated Press. All rights reserved. This material may not be published, broadcast, rewritten, or redistributed.