Lawmakers said on Monday night that they had reached an agreement "in principle" to avoid a second partial government shutdown set to begin on Saturday.

“We’ve had a good evening. We’ve reached an agreement in principle,” Sen. Richard Shelby (R-Ala.) told reporters.

The breakthrough came after Sens. Shelby (R-Ala.) and Patrick Leahy (D-Vt.) and Reps. Nita Lowey (D-N.Y.) and Kay Granger (R-Texas)—the top members of the Senate and House Appropriations Committee—met three times on Monday night in a last-ditch effort to get a deal.

Negotiators refused to discuss the particulars of the deal and Lowey said staff were still finalizing the details.

“I think everyone will say good work,” Granger said.

Shelby and Leahy, standing side by side as they spoke to reporters earlier Monday evening, indicated that the group thought they were closing in on a deal and could wrap up talks before Tuesday.

"We’re talking about reaching an agreement on all of it," Shelby told reporters.

Congress has until Saturday to get the seven remaining fiscal year 2019 appropriations bills to Trump's desk to fund roughly 25 percent of the federal government, including the Department of Homeland Security (DHS).

But as of Sunday, the group of 17 lawmakers tasked with clinching a deal still had two remaining sticking points: the amount of funding for physical barriers along the U.S.-Mexico border and a snag on Immigration and Customs Enforcement (ICE) detention beds.