House Republicans were left pondering their next move amid mixed signals from Donald Trump on an immigration compromise.

Days after an immigration bill crafted by moderate and farther-right Republicans began to circulate with the support of Republican leader Paul Ryan, Donald Trump said during an appearance on Fox & Friends that he would not back the legislation and instead supported a more conservative bill with a slimmer chance of passing.

“I’m looking at both of them,” Mr Trump said. “I certainly would not sign the more moderate one”.

The president’s rejection upended plans by Republican leadership to bring the compromise bill to a vote next week, with a member responsible for helping to corral votes saying legislators would not act without the Mr Trump’s support.

“We want to get clarity on the president’s position on this bill,” Rep Patrick McHenry of North Carolina told reporters. “Republicans are not going to take on immigration without the support and endorsement of President Trump”.

Adding to the confusion, the White House later said Mr Trump had misunderstood the question and would support both measures.

Undocumented immigration across the US-Mexico border Show all 14 1 /14 Undocumented immigration across the US-Mexico border Undocumented immigration across the US-Mexico border Immigrant children, many of whom are separated form their parents, are housed in Texas' tent city Reuters Undocumented immigration across the US-Mexico border A two-year-old Honduran asylum seeker cries as her mother is searched and detained near the US-Mexico border Getty Undocumented immigration across the US-Mexico border Undocumented migrants ride on the top of a freight train referred to as the beast, or La Bestia Getty Undocumented immigration across the US-Mexico border A cage inside a US Customs and Border Protection detention facility in Texas Reuters Undocumented immigration across the US-Mexico border US Border Patrol Academy All new agents must complete a months-long training course at the New Mexico facility before assuming their posts at Border Patrol stations, mostly along the US-Mexico border Getty Undocumented immigration across the US-Mexico border US-Mexico border fence A group of young men walk along the Mexican side of the US-Mexico border fence in a remote area of the Sonoran Desert Getty Undocumented immigration across the US-Mexico border US-Mexico border fence in the US Man looks through US-Mexico border fence into the US in Tijuana, Mexico Getty Undocumented immigration across the US-Mexico border US-Mexico border fence US Border Patrol agent Sal De Leon stands near a section of the US-Mexico border fence while stopping on patrol on in La Joya, Texas Getty Undocumented immigration across the US-Mexico border US Border Patrol Academy US Border Patrol instructor yells at trainees after their initial arrival to the academy Getty Undocumented immigration across the US-Mexico border Memorial service in Guatemala Families attend a memorial service for two boys who were kidnapped and killed in San Juan Sacatepequez, Guatemala. Crime drives emigration from Guatemala to the United States, as families seek refuge from the danger Getty Undocumented immigration across the US-Mexico border Arrests on the border Undocumented immigrants comfort each other after being caught by Border Patrol agents near the US-Mexico border Getty Undocumented immigration across the US-Mexico border Detention holding facility A boy from Honduras watches a movie at a detention facility run by the US Border Patrol Getty Undocumented immigration across the US-Mexico border Mexican farm workers Mexican migrant workers harvest organic parsley at Grant Family Farms in Wellington, Colorado Getty Undocumented immigration across the US-Mexico border Mexican family in Arizona A Mexican immigrant family sits in the living room of their rented home in Tuscon, Arizona. The family that Arizona's new tough immigrant law had created a climate of fear in the immigrant community. Getty

Earlier in the week, Mr Ryan reportedly reassured his caucus in a closed-door meeting that Mr Trump would support the measure, telling reporters that the “last thing I want to do is bring a bill out of here that I know the president won’t support.”

Some Republicans have been clamouring for a vote on immigration legislation before critical November midterm elections, with a bloc of moderate Republicans who face tough re-election campaigns pushing to resolve the status of so-called “Dreamers” - immigrants who were brought to the country when they were young and are here illegally.

Mr Trump moved last year to dissolve an Obama-era programme that offered Dreamers legal status, and while he has expressed sympathy for the hundreds of thousands of people thrown into limbo as a result he has insisted that any solution must include fortified border security and, potentially, funding for a border wall with Mexico.

US rescinds DACA program for young immigrants

The compromise measure hammered out by centrist Republicans and more conservative members would open up a path to citizenship for Dreamers and allocate $25bn for constructing the wall. It would also end a diversity visa lottery and curtail family-based migration, two mechanisms that Mr Trump has condemned as he has advocated a shift towards a more skills-based system.

While Democrats have said they would agree to a bill that addressed Dreamers and allocated some money for border security, the bill’s hefty outlay for the wall - which would represent the first significant funding commitment from Congress - and its restrictions on legal migration make it a nonstarter for many Democrats.