WASHINGTON – President Trump joined with Democratic congressional leaders Wednesday night to forge a deal to protect children of undocumented immigrants — a deal that the Dems said does not include money for a border wall.

The agreement with Sen. Chuck Schumer (D-New York) and Rep. Nancy Pelosi (D-California) to help so-called “Dreamers” came after Trump called the duo to a dinner meeting over Chinese food at the White House, according to sources.

Under the agreement, Congress would pass the bipartisan Dream Act along with measures to enhance border security, but not funding for Trump’s border wall with Mexico, the sources said.

“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,” Schumer and Pelosi said in a joint statement.

The White House said in its own statement that the president had “a constructive working dinner” with Schumer, Pelosi and administration officials “to discuss policy and legislative priorities,” including DACA.

Later the administration pushed back on the idea that the wall was off the table.

“While DACA and border security were both discussed, excluding the wall was certainly not agreed to,” White House press secretary Sarah Huckabee Sanders tweeted.

But Schumer spokesman, Matt House, clarified: “The President made clear he would continue pushing the wall, just not as part of this agreement.”

The announcement of the Dreamer deal drew instant criticism from conservatives against the plan.

“If AP is correct, Trump base is blown up, destroyed, irreparable, and disillusioned beyond repair. No promise is credible,” Rep. Steve King (R-Iowa) tweeted after the news broke.

Breitbart, the news outlet run by former Trump aide Steve Bannon, put up a head line that simply said “Amnesty Don.”

The pending Dream Act legislation would allow people who were brought to the US illegally as children years ago to eventually earn citizenship if they graduate high school, seek a higher education, serve in the military or work lawfully for three years.

Congress has tried unsuccessfully to pass protections for young immigrant Dreamers for 16 years. But there’s urgency now since Trump announced this month he’d end in six months the Obama-era program known as Deferred Action for Childhood Arrivals (DACA) that gave work permits to some 800,000 children of undocumented immigrants. Trump urged Congress to find a solution and he found willing partners with Schumer and Pelosi.

Democrats had initially feared Trump would hold Dream Act legislation hostage in order to fund his signature campaign promise – building a border wall with Mexico.

But Trump earlier Wednesday told a separate group of bipartisan lawmakers he’d be willing to set aside the wall and accept different border security measures to forge a compromise deal.

The deal marks the second major accomplishment the president has reached with Democrats in as many weeks.

And it’s another example of Trump finding comfort in making deals with his fellow New Yorker – Schumer.

This is at least the third time in two weeks Trump has cozied up to Schumer at the White House.

Trump struck a stunning Oval Office deal a last Wednesday with Schumer and Pelosi over the debt ceiling and hurricane funding that blindsided Republicans.

On Thursday, Schumer helped lead a meeting at the White House on the Gateway Tunnel project with governors and lawmakers from New York and New Jersey.

The Post has learned after that bipartisan infrastructure meeting ended and Govs. Cuomo and Christie left, Trump asked Schumer to stay behind for an extra 30 minutes for a private tete-a-tete on how to strike deals moving forward, according to source familiar with that meeting.