Washington — The House voted along party lines on Thursday to repeal many of the stricter regulations enacted after the 2008 financial crisis, taking the first step in a long-held Republican desire to roll back landmark rules they complain are hurting banks, restricting consumer credit and slowing economic growth.

The legislation, which faces major hurdles in the Senate because of united Democratic opposition, would continue the Republicans’ deregulatory push under President Donald Trump by dismantling key parts of the 2010 Dodd-Frank Wall Street Reform and Consumer Protection Act.

That law, passed with almost no Republican support, was the biggest overhaul of financial regulations since the Great Depression and one of President Barack Obama’s signature accomplishments.

Dodd-Frank is strongly supported by consumer advocates, but opposed by banks and other financial firms.

Its key reforms included a prohibition on federally insured banks from engaging in risky trading, a new liquidation authority to safely shut down teetering financial giants to avoid future bailouts and the creation of the independent Consumer Financial Protection Bureau to oversee credit cards, mortgages and other financial products.

The House legislation, called the Financial Choice Act, would undo or scale back much of Dodd-Frank. The bill was approved, 233-186. All but one Republican — Walter Jones, of North Carolina — voted for the bill. No Democrats supported it.

Its major changes include repealing the trading restrictions, known as the Volcker Rule, and scrapping the liquidation authority in favor of enhanced bankruptcy provisions designed to eliminate any chance taxpayers would be on the hook if a major financial firm collapsed.

The bill also would repeal a new Labor Department regulation, largely still pending, that requires investment brokers who handle retirement funds to put their clients’ interests ahead of their own compensation, company profits or other factors. And in a move vociferously protested by Democrats, the measure would gut the powerful consumer bureau.

The agency — the centerpiece of Dodd-Frank — has provided consumers about $12 million in refunds, mortgage principal reductions and other relief since opening in 2011. It played a key role in penalizing Wells Fargo & Co. for its creation of about 2.1 million unauthorized accounts.

The Financial Choice Act would strip the agency of its ability to closely monitor financial firms for compliance with consumer protection laws and specifically prohibits the bureau from writing any regulations on payday and car-title loans.

The bureau’s director would be subject to removal by the president for any reason and the agency’s independent funding stream would be eliminated, making it subject to congressional appropriations where Republicans could reduce its budget.

“We will replace bailout with bankruptcy. We will replace economic stagnation with a growing healthy economy,” said Rep. Jeb Hensarling, R-Texas, the legislation’s author. “We’ll replace Washington micromanagement with market discipline.”

Trump said during the campaign that he wanted to dismantle Dodd-Frank. In February, he directed Treasury Secretary Steven Mnuchin to consult with regulators about changes to the law and to report back by this month.

House Republican leaders decided not to wait. They pushed forward with a revised version of legislation introduced last year by Hensarling, chairman of the House Financial Services Committee.

Democrats labeled the legislation “The Wrong Choice Act” and said it risked creating another financial crisis by removing important regulations and consumer protections.

“Donald Trump and Republicans want to open the door to another economic catastrophe like the Great Recession and return us to a financial system where reckless and predatory practices harm our communities and families,” said Rep. Maxine Waters, D-Calif., who has led opposition to the bill.

Unlike changes to Obama’s health care law, making most changes to Dodd-Frank would require 60 votes in the Senate. Republicans in the Senate are working on their own financial regulatory bill that could gain the needed Democratic support. But Senate Majority Leader Mitch McConnell, R-Ky., said last month that he was not optimistic about making changes to Dodd-Frank.

The White House this week said it supported House passage of the legislation “as a necessary and important step in moving financial reform legislation through the Congress.”

A key feature of the Financial Choice Act is the ability for any bank to avoid strict federal regulatory oversight if it holds capital of at least 10 percent of assets. The current requirement is 3 percent for most banks and 6 percent for institutions considered systemically important. Big banks aren’t thrilled with such a high hurdle to avoid regulations and have not embraced the legislation.

An analysis by the nonpartisan Congressional Budget Office estimated that the eight largest banks — including JPMorgan Chase & Co., Citigroup Inc. and Bank of America Corp. — would be unlikely to choose the option because they would have to raise large amounts of capital given their size.

House Republicans pointed to Wall Street’s concerns about the capital levels, as well as the Financial Choice Act’s tougher federal penalties for financial fraud, to counter charges that they were doing Wall Street’s bidding.