The 1,169-page, $333 billion spending bill that President Donald Trump plans to sign into law removes the threat of any further government shutdowns - at least until October.
But only a few pages of the legislation deals with the U.S.-Mexico border wall that Trump has demanded - or "primary pedestrian fencing," as legislators wrote into the text. The rest of the bill focuses on other border security measures, as well as funding for scores of federal departments and agencies whose budgets have been held hostage for months due to the border standoff.
Here's a sampling of what the bill contains:
Border security provisions
$1.375 billion for new border barriers. Trump didn't get any of the $5.7 billion he demanded for a concrete or steel wall. The $1.375 billion is enough for 55 miles for "pedestrian" fencing in Texas' Rio Grande Valley, but it is also subject to numerous restrictions. The barriers can only use existing designs, they are banned in five ecologically or historically sensitive areas, and the Department of Homeland Security must consult with local officials before embarking on construction.
More technology, port infrastructure and Customs and Border Protection officers. The Trump administration could hire as many as 1,200 new Border Patrol officers under the agreement, and it won $100 million in technology funding aimed at the stretches of border between ports of entry, as well as another $112 million for aircraft and sensor systems. But a larger amount - $564 million - is aimed at beefing up scanning capability at the ports, where the majority of drug and human trafficking occurs.
A soft cap on ICE detention capacity. Democrats pushed in negotiations for a hard cap on how many people Immigrations and Customs Enforcement officers could detain - arguing that the agency needed to focus its efforts on criminals, not otherwise law abiding illegal immigrants. The bill contains a provision aimed at lowering the detainee cap from the current level of about 49,000 to about 40,000. But Republicans aides say that ICE will retain flexibility to maintain or exceed its current detention levels. The bill does include new restrictions on ICE detention practices including a ban on restraining pregnant women and mandatory public disclosure of family separation incidents.
Other government agencies
Federal pay raise. The agreement reverses a federal pay freeze instituted by the Trump administration late last year. Should the deal become law, government workers will see an across-the-board 1.9 percent pay increase - the same level negotiated between Senate Democrats and Republicans last year. House Democrats last month pushed for a larger, 2.6-percent raise, but retreated in negotiations. Federal workers in some high-cost-of-living areas such as Washington, D.C., will see a slightly higher raise, up to 2.2 percent.
Increased Census funding. The agreement includes a $1 billion increase in Census Bureau funding - $21 million above the Trump administration's request - to prepare for the 2010 census. Elsewhere across the government, the bipartisan agreement significantly boosts agencies' funding above the administration's requests.
No "poison pills" on issues. Negotiators largely sidestepped various policy disputes, rejecting new "riders" that pertain to abortion, environmental enforcement, and other contentious issues. On gun policy, for instance, Democrats rejected a GOP rider preventing the Justice Department from tracking certain sales of multiple guns to the same person. Republicans, meanwhile, turned back a Democratic rider limiting access to federal land for hunting, fishing, or recreational shooting. That also means the status quo continues for existing riders, such as banning U.S. foreign aid from funding groups supporting abortions abroad, or a provision preventing the IRS from restricting politically-oriented nonprofits.
What's not in the bill
While Democratic and Republican negotiators reached an accord on the key border security flash points, they did not reach agreement on other contentious items. They include:
Back pay for federal contractors. Democrats and some Republicans pushed to include about $1 billion in back pay targeting low-wage federal contract workers, such as custodial and service industry workers, who lost a month's wages due to the shutdown. But the White House strongly resisted paying contractors for work not done during a shutdown for the first time.
Extension of the Violence Against Women Act. A larger dispute about rewriting the Violence Against Women Act for the first time in more than six years bled into the spending negotiations. Democrats pushed to let the existing law lapse, which would lend momentum to a planned House rewrite. But Republicans wanted to keep existing law in place through the end of the fiscal year. Democrats say that there will be no practical impact for the time being, and they will work in the coming months to pass an updated bill.
Disaster aid. Lawmakers of both parties had pushed to include billions of dollars in federal aid for victims of recent hurricanes, wildfires and other disasters. But in the rush to complete the border accord, negotiators opted to leave the aid package off the bill. Top appropriators, Democrat and Republican, have said they expect to negotiate a separate disaster aid bill soon.