House Republican leaders intervened Friday to prevent a vote on immigration legislation, dealing a severe blow to election-year efforts to overhaul the dysfunctional system.

The move came after a Republican congressman from California announced plans to try to force a vote next week, over strong conservative opposition, on his measure creating a path to citizenship for immigrants who were brought illegally to the U.S. as children and serve in the military.

Rep. Jeff Denham labeled his bill the ENLIST Act and said he would seek a vote as an amendment to the popular annual defense bill, the National Defense Authorization Act, or NDAA.

In response, Doug Heye, spokesman for House Majority Leader Eric Cantor, said: “No proposed ENLIST amendments to NDAA will be made in order.”

Heye said no stand-alone vote on the measure would be permitted, either.

It was the latest setback for President Barack Obama’s efforts to move comprehensive immigration legislation through Congress to boost border security, remake legal worker programs and offer legal status to the estimated 11.5 million people now living here illegally. The Senate passed an immigration bill last year, but it’s been stalled in the GOP-led House.

Denham’s measure was widely popular and seen as perhaps the likeliest area for compromise.

But in recent weeks prominent conservative groups, including the Heritage Foundation, announced their opposition. Heritage Action, the group’s political arm, announced it would include the vote in its ratings on lawmakers and called Denham’s legislation “deplorable.”

Cantor himself, who previously had supported offering a path to citizenship for immigrants brought illegally as children, faces a primary challenge in Virginia June 10 from a tea party opponent who has criticized the majority leader for not being conservative enough and accused him of supporting amnesty for immigrants living here illegally.

Dave Brat, an economics professor at Randolph-Macon College, is not expected to unseat Cantor, but his campaign has won support from conservative leaders such as radio host Laura Ingraham, partly because of his attacks against Cantor over immigration.

Cantor, House Speaker John Boehner, R-Ohio, and other House GOP leaders have insisted they want to advance immigration legislation, though they’ve rejected the Senate’s comprehensive bill. Chances have always looked slim, but the White House and outside advocates saw a window for action over the next several months, before Congress’ August recess and November midterm elections.

Friday’s developments seemed to all but rule out anything happening on the issue this year in the House, if even Denham’s limited measure could not advance. Despite a wide coalition of business, labor, religious groups, farmers and others pushing for an immigration overhaul, many individual Republican House members who represent largely white districts have been unmoved.

Denham’s bill would allow immigrants who were brought to this country on or before Dec. 31, 2011, and were younger than 15 years old to become legal, permanent residents — the first step toward citizenship — through honorable service in the military.