Watched by Homeland Security Secretary Kirstjen Nielsen (L) and Vice President Mike Pence, US President Donald Trump signs an executive order on immigration in the Oval Office of the White House on June 20, 2018 in Washington, DC. - US President Donald Trump on Wednesday signed an executive order aimed at putting an end to the controversial separation of migrant families at the border, reversing a harsh practice that had earned international scorn."It's about keeping families together," Trump said at the signing ceremony. "I did not like the sight of families being separated," he added. (Photo by Mandel Ngan / AFP)        (Photo credit should read MANDEL NGAN/AFP/Getty Images)
PHOTO: MANDEL NGAN/AFP/Getty Images
Watched by Homeland Security Secretary Kirstjen Nielsen (L) and Vice President Mike Pence, US President Donald Trump signs an executive order on immigration in the Oval Office of the White House on June 20, 2018 in Washington, DC. - US President Donald Trump on Wednesday signed an executive order aimed at putting an end to the controversial separation of migrant families at the border, reversing a harsh practice that had earned international scorn."It's about keeping families together," Trump said at the signing ceremony. "I did not like the sight of families being separated," he added. (Photo by Mandel Ngan / AFP) (Photo credit should read MANDEL NGAN/AFP/Getty Images)
Now playing
02:49
What's next after Trump's policy reversal?
President Donald Trump addresses the 73rd session of the United Nations General Assembly, at U.N. headquarters, Tuesday, Sept. 25, 2018. (AP Photo/Richard Drew)
PHOTO: Richard Drew/AP
President Donald Trump addresses the 73rd session of the United Nations General Assembly, at U.N. headquarters, Tuesday, Sept. 25, 2018. (AP Photo/Richard Drew)
Now playing
01:17
Trump to migrants: Make your nations great again
Central American immigrants depart ICE custody, pending future immigration court hearings on June 11, 2018 in McAllen, Texas. Thousands of undocumented immigrants continue to cross into the U.S., despite the Trump administration's recent "zero tolerance" approach to immigration policy.  (Photo by John Moore/Getty Images)
PHOTO: John Moore/Getty Images
Central American immigrants depart ICE custody, pending future immigration court hearings on June 11, 2018 in McAllen, Texas. Thousands of undocumented immigrants continue to cross into the U.S., despite the Trump administration's recent "zero tolerance" approach to immigration policy. (Photo by John Moore/Getty Images)
Now playing
01:06
Judge blocks asylum seekers from deportation
PHOTO: Pool
Now playing
01:51
Trump: I prefer shutdown before midterms
CHICAGO, IL - JUNE 29:  Demonstrators hold a rally in the Little village neighborhood calling for the elimination of the U.S. Immigration and Customs Enforcement (ICE) and an end to family detentions on June 29, 2018 in Chicago, Illinois. Protests have erupted around the country recently as people voice outrage over the separation and detention of undocumented children and their parents.  (Photo by Scott Olson/Getty Images)
PHOTO: Scott Olson/Getty Images North America/Getty Images
CHICAGO, IL - JUNE 29: Demonstrators hold a rally in the Little village neighborhood calling for the elimination of the U.S. Immigration and Customs Enforcement (ICE) and an end to family detentions on June 29, 2018 in Chicago, Illinois. Protests have erupted around the country recently as people voice outrage over the separation and detention of undocumented children and their parents. (Photo by Scott Olson/Getty Images)
Now playing
01:30
HHS refusing to release family separation stats
Now playing
01:01
Reporter to Sarah Sanders: Why did Trump lie?
Now playing
01:28
Trump: ICE agents are mean but have heart
PHOTO: Pool
Now playing
01:23
Trump: Our facilities better than Obama's
trump king of jordan visit
PHOTO: CNN
trump king of jordan visit
Now playing
01:15
Trump: No regrets signing executive order
Immigrant children walk in a line outside the Homestead Temporary Shelter for Unaccompanied Children, a former Job Corps site that now houses them, on Wednesday, June 20, 2018, in Homestead, Fla. (AP Photo/Brynn Anderson)
PHOTO: Brynn Anderson/AP
Immigrant children walk in a line outside the Homestead Temporary Shelter for Unaccompanied Children, a former Job Corps site that now houses them, on Wednesday, June 20, 2018, in Homestead, Fla. (AP Photo/Brynn Anderson)
Now playing
01:54
Children in limbo after Trump executive order
Secretary of State Mike Pompeo listens as President Donald Trump speaks during a cabinet meeting at the White House, Thursday, June 21, 2018, in Washington. (AP Photo/Evan Vucci)
PHOTO: Evan Vucci/AP
Secretary of State Mike Pompeo listens as President Donald Trump speaks during a cabinet meeting at the White House, Thursday, June 21, 2018, in Washington. (AP Photo/Evan Vucci)
Now playing
02:18
White House chaos over immigration reversal
Trump meeting 06202018
PHOTO: POOL
Trump meeting 06202018
Now playing
02:33
Trump reverses position on family separations
President Donald Trump signs an executive order to keep families together at the border, but says that the 'zero-tolerance' prosecution policy will continue, during an event in the Oval Office of the White House in Washington, Wednesday, June 20, 2018. Standing behind Trump are Homeland Security Secretary Kirstjen Nielsen, left, and Vice President Mike Pence. (AP Photo/Pablo Martinez Monsivais)
PHOTO: Pablo Martinez Monsivais/AP
President Donald Trump signs an executive order to keep families together at the border, but says that the 'zero-tolerance' prosecution policy will continue, during an event in the Oval Office of the White House in Washington, Wednesday, June 20, 2018. Standing behind Trump are Homeland Security Secretary Kirstjen Nielsen, left, and Vice President Mike Pence. (AP Photo/Pablo Martinez Monsivais)
Now playing
01:52
Trump signs executive order to end family separations
PHOTO: CNN
Now playing
01:18
Trump: Take children away to prosecute parents
THE PRESIDENT meets with the National Space Council  In-House Pool (Pre-set 9:30AM | Final Gather 11:15AM -- Palm Room Doors)
PHOTO: Pool
THE PRESIDENT meets with the National Space Council In-House Pool (Pre-set 9:30AM | Final Gather 11:15AM -- Palm Room Doors)
Now playing
01:40
Trump: The US will not be a migrant camp
(CNN) —  

President Donald Trump said Friday that Republicans should wait until after the November midterm elections to pass immigration legislation – undercutting GOP leadership – but Capitol Hill negotiators say they’ll continue working through the weekend on a bill they hope can pass next week despite the tweet.

“Republicans should stop wasting their time on Immigration until after we elect more Senators and Congressmen/women in November,” Trump tweeted. “Dems are just playing games, have no intention of doing anything to solves this decades old problem. We can pass great legislation after the Red Wave!”

Trump’s comments come as House Republicans have been struggling to wrangle support for a comprehensive immigration bill. On Thursday, Republicans decided to postpone a vote on it for the second time in less than a day. Senate and House leaders have also been trying to find a bill that would end family separations at the border.

In a series of tweets Friday morning, Trump said electing more Republicans in November would result in a comprehensive immigration bill.

“Elect more Republicans in November and we will pass the finest, fairest and most comprehensive Immigration Bills anywhere in the world. Right now we have the dumbest and the worst,” he tweeted. “Dems are doing nothing but Obstructing. Remember their motto, RESIST! Ours is PRODUCE!”

Earlier this week, Trump told Republican lawmakers in a closed-door meeting that he was “100%” behind their push to pass an immigration bill, according to Rep. Mark Meadows and other Republicans in the room.

House Republicans on Capitol Hill on Friday said they were surprised by Trump’s tweet and while those involved with negotiations vowed to continue, others voiced frustration with the President undercutting their plans.

South Carolina Republican Rep. Mark Sanford said Trump’s tweets Friday amounted to “game over” for any immigration bill being considered.

“It takes the wind out of the sails in what might have been a fairly productive week in terms of looking for a compromise,” Sanford told CNN’s Alisyn Camerota on “New Day.”

“What I would like is for the President to have the same message,” said Rep. Mike Coffman, a vulnerable Republican from Colorado facing midterm pressures over immigration issues. He added, “I get that it’s tough in the Senate with the 60 vote requirement, uh, but that is no reason not to try.”

But House Majority Leader Kevin McCarthy, says GOP members are still marching forward with plans to vote next week.

“We’ll work through the weekend and you’ll see that bill on the floor next week,” said the California Republican, whom House Speaker Paul Ryan endorsed as his replacement when he retires at the end of his term.

Deputy Majority Whip Patrick McHenry, a North Carolina Republican, told reporters that the politics of immigration “is the same as it ever was”

Asked why Republicans don’t stop wasting their time after Trump’s tweet, McHenry responded “that’s a very good question.”

He then added “votes were pledged in order to turn off the discharge petition,” a reference to the procedural maneuver moderates had threatened to use to force a vote on a series of immigration bills.

“There was a pledge that was made and the intention is to fulfill it,” McHenry said.

CNN’s Phil Mattingly, Manu Raju and Tal Kopan contributed to this report.