WASHINGTON (NBC)— Senators reached a bipartisan deal Thursday that would provide more than $19 billion in disaster aid funding to parts of the U.S. hit by hurricanes, flooding, earthquakes and wildfires, following months of negotiation.

Leaving a closed-door Senate Republican lunch, Senate Appropriations Committee Chairman Richard Shelby, R-Ala. told reporters that an agreement had been reached.

The two said they had spoken to President Donald Trump about the parameters of the deal Thursday afternoon, which excludes the $4.5 billion in border funding that White House and Republicans kept demanding. Trump signed off, according to the two lawmakers.

The Senate is expected to vote on the measure Thursday afternoon before leaving Washington for a week-long Memorial Day recess. This comes after Senate Majority Leader Mitch McConnell, R-Ky., warned earlier in the day that the upper chamber would remain in session this week until they passed a disaster aid bill.

According to a breakdown of the bill from Shelby’s office, it would provide about $900 million to Puerto Rico, which was ravaged by Hurricane Maria in 2017. That money would go toward nutrition assistance and a community development block grant, both of which were key Democratic priorities.

The House would have to vote on the bill before it’s sent to Trump’s desk. House lawmakers have already left for their recess but they could pass it quickly through unanimous consent.

“Ever since the House’s first vote on disaster relief on January 16, Congressional Democrats have worked to negotiate a disaster relief package that provides assistance for all Americans, including in Puerto Rico,” said Evan Hollander, communications director for House Appropriations Committee Chairwoman Nita Lowey, D-N.Y. “…If the Senate passes the legislation today, House Democrats support clearing it through the House as soon as possible.”