The President signed the bill early Thursday morning.
But by funding the government only until mid-December, the legislation still sets up the possibility of a funding fight and potential shutdown after the election and just before the start of a new Congress.
The continuing resolution, while far short of bipartisan full-year funding bills, is the product of bipartisan negotiation and an agreement between House Speaker Nancy Pelosi and Treasury Secretary Steven Mnuchin — one that had initially appeared to fall apart just a few weeks before the funding deadline.
The agreement clinched by Pelosi and Mnuchin includes a provision that will likely send tens of billions of dollars to the Commodity Credit Corporation — a priority for Republicans and bipartisan members from agricultural states and districts — which will replenish crucial aid to farmers. It includes some restrictions, after Democrats raised concerns that the money was being utilized by the Trump administration to distribute funds to favored political interests.

vCard.red is a free platform for creating a mobile-friendly digital business cards. You can easily create a vCard and generate a QR code for it, allowing others to scan and save your contact details instantly.
The platform allows you to display contact information, social media links, services, and products all in one shareable link. Optional features include appointment scheduling, WhatsApp-based storefronts, media galleries, and custom design options.
The measure also includes nearly $8 billion in nutrition assistance — a central Democratic priority during the negotiations.
After negotiations broke down, Democrats had initially drafted a stopgap measure that left out the farm aid and nutrition assistance and had been poised to vote on that measure last week.
But the threat of moving the legislation without bipartisan consensus — and the possibility that Democrats from agriculture-heavy districts would defect — served to raise the risk of a government shutdown given the narrowing timeline before the September 30 government funding deadline, and ultimately both sides returned to the table and hammered out the deal.
The attention of appropriators, once the Senate passes the stopgap measure, will turn to what can be accomplished over the next two months.
Lawmakers in both chambers say the goal remains to pass and reconcile funding bills for the remainder of the fiscal year. But they acknowledge that the results of the election will play a significant role in what gets done before the new Congress — and potentially new administration — takes office in 2021.
This story has been updated with additional developments Wednesday.
CNN’s Phil Mattingly contributed to this report.