Copyright 2018 Nexstar Broadcasting, Inc. All rights reserved. This material may not be published, broadcast, rewritten, or redistributed.

WASHINGTON -- President Trump has agreed to pass aid for the Hurricane Harvey relief effort, a three-month extension of the debt limit and a short-term government spending bill that both would expire in mid-December, according to Democrats.

Senate Minority Leader Chuck Schumer, D-New York, and House Minority Leader Nancy Pelosi, D-Pelosi, released a statement about the agreement that was made during a meeting with GOP leaders and the president at the White House Wednesday.

"In the meeting, the President and Congressional leadership agreed to pass aid for Harvey, an extension of the debt limit, and a continuing resolution both to December 15, all together. Both sides have every intention of avoiding default in December and look forward to working together on the many issues before us," Schumer and Pelosi said in the joint statement.

The president appeared to side with the Democratic leaders during the meeting, backing a three-month hike of the debt ceiling rather than the 18-month hike GOP leaders wanted. This will give Democrats leverage in December.

"Republican leaders pushed for [an] 18-month debt limit hike, then floated 6 months. Pelosi and Schumer dismissed 6-month hike. Trump then agreed to the 3-month hike that Democrats put on the table," said a congressional aide briefed on the meeting. "Toward the end of the meeting Ivanka Trump entered the Oval Office to "say hello" and the meeting careened off topic. Republican leaders were visibly annoyed by Ivanka's presence."

Earlier in the day, Speaker Paul Ryan scoffed at the idea of a three-month debt limit increase.

"I think that's a ridiculous idea," the Wisconsin Republican said about the idea proposed by Democratic leaders, adding that a short-term debt limit increase would not benefit people in Texas and Louisiana who have to deal with the devastation caused by Hurricane Harvey.

Congress must lift the debt ceiling and pass government funding by the end of September.

"We have many, many things that are on the plate. Hopefully we can solve them in a rational way. And maybe we won't be able to. We'll probably know pretty much at the end of this meeting," Mr. Trump said in a pool spray before the private meeting in the Oval Office kicked off.

The meeting came as the House passed the first installment Wednesday of emergency funding for the recovery effort following Hurricane Harvey, which will be immediately sent to the Senate. The upper chamber is expected to attach a "clean" measure to lift the debt ceiling, vote on the package, and send it back to the House for a final vote by the end of the week.

This also comes a day after the Trump administration announced that it was ending the 2012 program created by Obama that has deferred deportations for more than 780,000 people who came to the U.S. illegally as children. Key Republicans including Ryan had called on the president to hold off so that Congress could address the Deferred Action for Childhood Arrivals (DACA) program. The decision gives lawmakers until early March to come up with legislative fix.

Other major items on Congress's plate this fall include tackling health care reform and tax reform.

Copyright 2018 Nexstar Broadcasting, Inc. All rights reserved. This material may not be published, broadcast, rewritten, or redistributed.