The program provided temporary work permits and protection from deportation.
Trump ended the program earlier this month and had given Congress six months to come up with a legislative fix before the statuses of the so-called 'Dreamers' begin to expire.
'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 a joint statement.
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.
The White House did not immediately respond to a request for comment, but said in its own statement that the president had had 'a constructive working dinner' with Schumer, Pelosi and administration officials 'to discuss policy and legislative priorities,' including DACA.
'This is a positive step toward the President's strong commitment to bipartisan solutions for the issues most important to all Americans,' the White House said.
During a White House meeting with moderate House members from both parties earlier Wednesday, Trump had urged lawmakers to come up with a bipartisan solution.
'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.'
The apparent deal is the latest example of Trump's sudden pivot to bipartisanship after months of railing against Democrats as 'obstructionist.' He has urged them to join him in overhauling the nation's tax code, among other priorities.
More about: #DACA