WASHINGTON — President Donald Trump denied Thursday an assertion by Congress’ top two Democrats that they reached an agreement with him that would preserve protections for young immigrants in the U.S. illegally while providing border security enhancements, but not the Southern wall he has coveted.

“No deal was made last night on DACA,” known as the Deferred Action for Childhood Arrivals, Trump tweeted before daybreak Thursday, contracting a characterization of a private White House dinner Wednesday night by his guests, Sen. Chuck Schumer and House Minority Leader Nancy Pelosi.

“Massive border security would have to be agreed to in exchange for consent. Would be subject to vote,” Trump said in one of a series of posts to his Twitter account.”

No deal was made last night on DACA. Massive border security would have to be agreed to in exchange for consent. Would be subject to vote.

Hours earlier, shortly after the conclusion of the dinner, White House press secretary Sarah Huckabee Sanders had pushed back against the Schumer-Pelosi statement embracing the claim of a deal. Sanders reiterated that point Thursday, saying, “While DACA and border security were both discussed, excluding the wall was certainly not agreed to.”

It was a bizarre turn of events for a president who’s been inclined recently to turn to Democrats to jump-start legislative imperatives, and it came just days after Trump and the Democratic leaders agreed to back a three-month extension of the debt limit in order to speed federal financial assistance to hurricane-ravaged Southern states.

“The WALL, which is already under construction in the form of new renovation of old and existing fences and walls, will continue to be built,” Trump said in one of Thursday’s stream of tweets. But he also voiced sympathy for the hundreds of thousands of younger immigrants vulnerable to deportation even though they were brought to the United States as toddlers or young children. He had announced last week that his administration was rescinding the DACA program, launched by President Barack Obama, and gave Congress 60 months to address the issue.

“Does anybody really want to throw out good, educated and accomplished young people who have jobs, some serving in the military, really?” he tweeted. “They have been in our country for many years through no fault of their own – brought in by parents at a young age. Plus BIG border security.”

The agreement claimed by Schumer and Pelosi represents the latest instance of Trump ditching his own party to make common cause with the opposition.

“We agreed to enshrine the protections of DACA into law quickly, and to work out a package of border security, excluding the wall, that’s acceptable to both sides,” Pelosi and Schumer said in their joint statement.

In response to the White House’s initial dissent to the Democratic statement, elosi spokesman Drew Hammill said that “the president was clear he would press for the wall but separate from this agreement.”

Either way, it was the second time in two weeks that Trump cut out Republicans to reach a deal with Pelosi and Schumer. A person briefed on the meeting, who demanded anonymity to discuss it, said the deal specifies bipartisan legislation called the DREAM Act that provides eventual citizenship for the young immigrants.

House Republicans would normally rebel over such an approach, which many view as amnesty for law-breakers. It remains to be seen how conservatives’ loyalty to Trump will affect their response to a policy they would have opposed under other circumstances.

The House’s foremost immigration hardliner, GOP Rep. Steve King of Iowa, made clear that he, for one, was not happy.

Addressing Trump over Twitter, King wrote that if the reports were true, “Trump base is blown up, destroyed, irreparable, and disillusioned beyond repair. No promise is credible.”

Earlier Wednesday, during a White House meeting with moderate House members from both parties, Trump had urged lawmakers to come up with a bipartisan solution for the “Dreamers.”

“We don’t want to forget DACA,” Trump told the members at the meeting. “We want to see if we can do something in a bipartisan fashion so that we can solve the DACA problem and other immigration problems.”

Foreshadowing what was to take place later that evening, Trump had said he would be open to separating the wall issue from the question of the younger immigrants, as long as the wall got dealt with eventually.

The apparent deal is the latest example of Trump’s sudden pivot to bipartisanship after months of railing against Democrats as “obstructionist.” He has also urged them to join him in overhauling the nation’s tax code, among other priorities.

Trump, who was deeply disappointed by Republicans’ failure to make good on years of promises to repeal “Obamacare,” infuriated many in his party last week when he reached a three-month deal with Schumer and Pelosi to raise the debt ceiling, keep the government running and speed relief to states affected by recent hurricanes.

“More and more we’re trying to work things out together,” Trump explained Wednesday, calling the development a “positive thing” for both parties.

“If you look at some of the greatest legislation ever passed, it was done on a bipartisan manner. And so that’s what we’re going to give a shot,” he said.

The “Kumbaya” moment now appears to extend to the thorny issue of immigration, which has been vexing lawmakers for years. Funding for Trump’s promised wall had been thought to be a major point of contention between Republicans and Democrats as they attempted to forge a deal — yet by Thursday, Trump was apparently ready to deal even on that issue, the one that most defined his campaign for president last year.

PBS NewsHour allows open commenting for all registered users, and encourages discussion amongst you, our audience. However, if a commenter violates our terms of use or abuses the commenting forum, their comment may go into moderation or be removed entirely. We reserve the right to remove posts that do not follow these basic guidelines: comments must be relevant to the topic of the post; may not include profanity, personal attacks or hate speech; may not promote a business or raise money; may not be spam. Anything you post should be your own work. The PBS NewsHour reserves the right to read on the air and/or publish on its website or in any medium now known or unknown the comments or emails that we receive. By submitting comments, you agree to the PBS Terms of Use and Privacy Policy, which include more details.