Late last night, negotiators in Congress unveiled a $1.012 trillion spending bill to keep the government open for the rest of fiscal 2014.

Congressional Quarterly has a handy chart that breaks down where all that spending will go (all figures in millions of dollars). The first column below shows actual spending levels for fiscal 2013, after the sequestration cuts hit. The last column shows levels set for 2014. The middle columns are the various negotiating positions:



All figures in millions of dollars of new budget authority. OCO = "Overseas Contingency Operations." (Click to enlarge.)

Remember, this is only discretionary spending, so it doesn't include Social Security, Medicare, Medicaid or any programs written into permanent law.

Here's a more detailed breakdown of the bill, with changes from last year's funding levels (that is, the levels before sequestration hit). I've also highlighted some of the more interesting provisions:

Agriculture: 1.7 percent increase over last year's final levels. Among other highlights in this section: The bill reinstates the federal ban on slaughtering horses for meat exports (see here for context). It keeps spending for the Women, Infants and Children program flat. And it slices about $19 million in funding for meat, egg and poultry inspections (although this is still above the White House request).

Commerce-Science-Justice: 3 percent increase. Law enforcement agencies get a big spending bump, with the FBI getting $232 million more than appropriators doled out last year (before sequestration), with money to meet the rising demand for gun background checks. NASA will receive $17.6 billion, a small increase over last year. The National Science Foundation gets $7.2 billion, or $82 million less than last year.

Defense: 0.2 percent increase. Military spending basically gets kept at the same levels as last year, once you factor in the effects of the sequestration. And it's about $29 billion less than the Pentagon wanted. The budget includes $486.9 billion for the Pentagon’s base budget and another $85.2 billion for operations overseas this year. The overseas budget is declining only slightly even as the war in Afghanistan winds down.

Another highlight: There's a 1 percent increase in pay for military personnel.

Energy-Water: 2.3 percent increase. There are a whole bunch of add-ons in this section. The bill eliminates funding to enforce the new efficiency standards for light bulbs (which is phasing out old incandescent bulbs). There's a review of the proposed nuclear waste facility at Yucca Mountain. And the bill provides $562 million in research for coal, natural gas, oil and other fossil-fuel technology. Meanwhile, the bill provides far less in funding for energy-efficiency research than the administration asked for.

Financial Services: 2.7 percent increase. The IRS would get $526 million less than it did last year, and it wouldn't get any new money to implement Obamacare. The bill also prevents the IRS from targeting groups based on their ideological beliefs. The bill also prohibits the use of federal and local funds for abortions in the District of Columbia.

Homeland Security: 0.8 percent increase. In this section, Congress massively increased funding for border security, providing some $10.6 billion and allowing the Border Patrol to hire 3,430 new customs officials. But, at the same time, the bill cuts $336 million from the Department of Homeland Security, with most of the reductions at the Transportation Security Administration. Republicans won an agreement to boost funding for private security screeners and caps TSA's screening personnel at 46,000.

Interior-Environment: 0.8 percent increase. There's a significant boost for firefighting programs in both the Interior Department (a 2 percent increase) and the Forest Service (11.6 percent increase). On the flip side, the bill cuts funding for the Environmental Protection Agency. It also requires federal agencies to report all of their climate-change-related programs to Congress.

Labor-HHS-Education: 2 percent increase. There's a big bump for the National Institutes of Health, which gets a 3.3 percent funding increase to $29.9 billion. Same goes for the Centers for Disease Control and Prevention, which gets a 8.2 percent increase to $6.9 billion. The bill also restores funding for Head Start, which was hit hard by sequestration. On the other hand, there are cuts for the Department of Labor and the rest of the Department of Education.

On the Obamacare front, the bill doesn't provide any new funding for implementation. Instead, it cuts $1 billion from the Prevention and Public Health Fund and slices $10 million from the budget for the Independent Payment Advisory Board.

Legislative: No increase. Congress basically held spending on its own operations to the pre-sequestration 2013 levels. There's a small pot of money ($720,000) to fund increased intelligence oversight.

Military Construction-Veterans Affairs: 3.3 percent increase. One big change here: Lawmakers restored an earlier cut in the cost-of-living adjustments to the pensions of disabled working-age veterans.

State Department-Foreign Operations: 8 percent decrease. The bill sets aside $1.3 billion in aid to the Egyptian military, but only after the Egyptian government agrees to hold a referendum on a new constitution. There's also $1.3 billion here for aiding Syrian refugees, something the Obama administration didn't request.

And a few restrictions: The legislation withholds additional funding for the government of Afghanistan until the country agrees to a new bilateral security agreement. The bill also bars the Export-Import Bank from blocking the construction of coal-fired power plants overseas.

Transportation-HUD: 2 percent decrease. This is just the discretionary part of transportation funding, but there are a few tweaks here. Obama's TIGER grant program to provide funding for innovative state projects gets an extra $600 million. Meanwhile, funding for high-speed rail gets eliminated. The bill also puts new restrictions on the Essential Air Service, which subsidizes flights to rural airports — certain localities will now have to share costs.

Further reading: My colleague Ed O'Keefe has more on the winners and losers in the bill.