Updated at 1:25 p.m. and then 5:50 p.m. on Thursday with news of the delayed vote on one measure and the result of a failed vote on another bill.

WASHINGTON — House Republican leaders on Thursday delayed a planned vote on legislation that would overhaul the nation's broken immigration system as deep intraparty divisions threatened to hand the GOP an embarrassing defeat.

That decision came as the House rejected, by a 193-231 vote, a different, more conservative immigration bill also offered up by the GOP.

Hanging in the balance is legal protection for young immigrants covered by the Deferred Action for Childhood Arrivals program, or DACA; money for President Donald Trump's border wall; steep cuts to legal immigration; and a long-term strategy for addressing family separations at the border.

House GOP leaders plan instead to hold a vote next week on the compromise measure they crafted, giving them time to add other components and muster up the necessary votes.

But there is no guarantee of success, given the wide expanse between the GOP's conservatives and moderates over how to handle the politically fraught issue. In a sign of the long odds, Rep. Will Hurd — a key swing vote — had announced that he would not support the push.

"I have long advocated for securing our nation's borders and providing a permanent legislative fix for DACA recipients, but this proposal does not accomplish either goal," the Republican from San Antonio said before the delay was announced.

The chaos could hold particular consequences for Trump, who has amplified the immigration debate of late by pursuing a border policy that separated immigrant children from their parents.

The president on Wednesday succumbed to political pressure and signed an executive order aimed at stopping the practice. He also urged the House to act on broader immigration legislation, telling members earlier this week that he was "1000 percent" behind the bills.

But Trump — not for the first time — on Thursday morning stepped on his own vote whipping operation by casting the effort as pointless due to the unlikelihood of Senate passage.

"What is the purpose of the House doing good immigration bills when you need 9 votes by Democrats in the Senate, and the Dems are only looking to Obstruct (which they feel is good for them in the Mid-Terms)," he wrote on Twitter.

What is the purpose of the House doing good immigration bills when you need 9 votes by Democrats in the Senate, and the Dems are only looking to Obstruct (which they feel is good for them in the Mid-Terms). Republicans must get rid of the stupid Filibuster Rule-it is killing you! — Donald J. Trump (@realDonaldTrump) June 21, 2018

Deep disagreement

That drama spotlights anew the GOP's deep disagreement on immigration.

A group of moderate House Republicans, including Hurd, threatened in recent weeks to buck their party leadership by joining with Democrats to sign a "discharge petition" that would've forced a vote on more bipartisan legislation to deal with DACA and other issues.

"We cannot avoid action any longer," Hurd said last month when announcing the move.

GOP leadership averted that mutiny — which came within two signatures of succeeding — by promising instead to hold votes on two immigration bills. Thursday was supposed to be the day.

"This is not a crisis of President Trump's making," said Rep. Michael Burgess, R-Pilot Point. "This crisis has been a long time in the making. Congress does need to solve this problem. The president is quite correct in that."

Rep. Will Hurd, R-Texas, said he would vote against the GOP's compromise measure: "I have long advocated for securing our nation's borders and providing a permanent legislative fix for DACA recipients, but this proposal does not accomplish either goal." (J. Scott Applewhite / The Associated Press)

Both bills provided legal status to those immigrants who've received DACA. Both committed millions of dollars to boosting border security, in part by building a wall along the U.S.-Mexico border. Both made changes to the legal immigration system, including the diversity visa lottery.

But one took a harder line, appealing to conservatives who've bemoaned a decades-long failure to secure the border.

That legislation would not have given a pathway to citizenship for DACA recipients. It would've committed more money to the wall and other security measures. It would not have addressed family separations at the border. It would've reduced legal immigration levels.

The conservative option was expected to fail. It did.

Forty-one Republicans joined every Democrat in voting against the measure. Hurd, who faces a tough re-election effort, and Tyler Rep. Louie Gohmert, a tea party conservative, were the only two Texas Republicans to reject the legislation, albeit for very different reasons.

While Hurd said the bill didn't do enough to help DACA recipients, Gohmert said it went too far.

"I liked the bill, but the poison pill was those 30 or so pages that gave amnesty," Gohmert said.

Another vote next week

The result turns the focus back toward the compromise measure — and a whole new Goldilocks test that will come with a vote that first delayed until Friday and then until next week.

While the one measure didn't win over enough moderates, the other may not earn the backing of enough Republicans on the other end of the spectrum. One other factor is that Trump is correct: The Senate, which requires 60 votes to pass most bills, is highly unlikely to OK the legislation.

Only adding to the uncertain outlook in the House has been Trump's inability to make his preference clear.

Rep. Roger Williams, R-Austin, highlighted that dynamic on Wednesday by saying he was "not there" on the compromise measure. He said that he felt he could be a "good conservative" and still vote for only the other bill, which he said "takes on the issues I'm concerned about."

"He talked more about [the compromise bill] than the other, but he also said that he would sign whatever he got to his desk," Williams told The Washington Post, relaying the pitch that Trump made to House Republicans earlier in the week.

What is sure is that the GOP will get no assistance from Democrats in passing the measure.

While many Democrats in Texas and beyond have clamored for ways to protect those immigrants who came to the U.S. illegally as children, they've objected to the GOP's broader immigration approach. In particular, they've rejected a border wall as heartless and ill-conceived.

"The border wall ... it'd be a monumental waste of taxpayer dollars," Rep. Vincente Gonzalez, D-McAllen, said Thursday on C-SPAN. "A fourth century solution would not work."

Other Texas Democrats echoed that view.

El Paso Rep. Beto O'Rourke called one of the GOP bills "draconian." Houston Rep. Sheila Jackson Lee said the efforts to reduce legal immigration amounted to an "atrocity." Houston Rep. Al Green said it was unfair to call the GOP bill a compromise because it didn't feature Democratic input.

But Republicans countered that Democrats are just posturing ahead of the November elections.

"They are completely interested in making this a campaign issue," Rep. Michael McCaul, an Austin Republican who leads the House Homeland Security Committee, said in an interview on Fox News Channel's Fox & Friends.

CORRECTION, June 21, 2018, at 3:10 p.m.: An earlier version of this story incorrectly attributed to Rep. Jeb Hensarling, R-Dallas, a since-deleted quote about President Donald Trump's position on the immigration legislation. It also incorrectly stated Hensarling's position on one of the immigration bills.