The Republican-dominated House of Representatives voted Wednesday to overturn President Barack Obama's key immigration policies, approving legislation that would eliminate new deportation protections for millions and expose hundreds of thousands of younger immigrants to expulsion.

The legislation represents the latest challenge to Obama's domestic priorities by Republicans who took control of both houses of Congress last week following their sweep of November elections. The president has fought back with veto threats, and immigrant advocates warned that Republicans risk alienating Latino voters who will be crucial to the 2016 presidential election.

The 236-191 vote came on a broad bill that would provide $40 billion to finance the Homeland Security Department through the rest of the budget year, legislation that lawmakers of both parties said was sorely needed to pay for counterterrorism, cybersecurity and other priorities at a moment when the Paris terror attacks have underscored dire threats.

Story continues below advertisement

Democrats accused Republicans of putting that money at risk by attaching veto-bait amendments on immigration, and some Republicans voiced the same concern. But House Republican leaders and most of their rank and file accused Obama in turn of reckless and unconstitutional actions on immigration that had to be answered.

"This executive overreach is an affront to the rule of law and to the Constitution itself," House Speaker John Boehner said. "The people made clear that they wanted more accountability from this president, and by our votes here today we will heed their will and we will keep our oath to protect and defend the Constitution."

Rep. Linda Sanchez, a Democrat who chairs the Congressional Hispanic Caucus, said the Republicans were simply pandering to the far right.

"Shame on Republicans for attacking the Latino community," Sanchez said. "Republicans are consciously targeting millions of families who work hard, contribute to our communities and are just trying to give their children a chance at the American dream."

One of the immigration amendments, approved 237-190, would undo executive actions that Obama announced in November to provide temporary deportation relief and work permits to some 4 million immigrants in the country illegally, mostly people who have children who are citizens or legal permanent residents. The amendment also would cancel earlier directives to immigration agents aimed at giving them discretion in focusing deportations on criminals.

A second amendment would delete Obama's 2012 policy that's granted work permits and stays of deportation to more than 600,000 immigrants who arrived in the U.S. illegally as children under age 16. That measure passed narrowly, 218-209, as 26 of the more moderate Republicans, some representing large Hispanic populations, joined Democrats in opposition.

The underlying bill passed on a mostly party line vote, with 10 Republicans voting "no" and two Democrats voting "yes."

Story continues below advertisement

But even with Republicans in control of the Senate, the bill faces tough sledding there. Republicans are six votes shy of the 60-vote majority needed to advance most legislation, and some Republican senators have argued that the Homeland Security bill shouldn't be the vehicle for a contentious debate on immigration.

In the House, too, there's frustration from some centrist Republican lawmakers that two weeks into a new session of Congress, the most conservative lawmakers are still calling the shots, successfully pushing leaders for a vote to undo the 2012 policy dealing with younger immigrants known as "Dreamers."

"If we were just specifically dealing with the November overreach of the president, you'd have Democrats who'd be voting with us on that piece of it but we've gone well beyond that," said Rep. Jeff Denham. "We're passing a bill for political reasons, a bill that has no ability to pass the Senate."

Before leaving town for a two-day retreat in Hershey, Pennsylvania, Republicans also steered the House to approval of legislation to ease the landmark Dodd-Frank law, which aimed to rein in banks and Wall Street. The new legislation would give U.S. banks two extra years to ensure that their holdings of certain complex and risky securities don't put them out of compliance with a new banking rule. The Dodd-Frank changes, approved 271-154, also face an Obama veto threat.

Associated Press writers Alan Fram, Connie Cass and Marcy Gordon in Washington, Steve Peoples in San Diego, Michael Mishak in Miami and Kathleen Ronayne in Manchester, New Hampshire, contributed to this report.