The House on Thursday approved the first appropriations bill of the year, a measure that spends $51 billion on the Departments of Commerce and Justice, NASA and other related agencies.

The spending bill, H.R. 5326, was approved in a 247-163 vote in which eight Republicans voted against it, reflecting opposition to the amount spent in the bill. But it also picked up the support of 23 Democrats.

Republicans voting against the bill were Reps. Justin AmashJustin AmashEnergized by polls, House Democrats push deeper into GOP territory Ocasio-Cortez draws hundreds of thousands of viewers on Twitch livestream Hillicon Valley: House votes to condemn QAnon | Americans worried about foreign election interference | DHS confirms request to tap protester phones MORE (Mich.), Paul BrounPaul Collins BrounHundreds apply to fill Isakson's Senate seat in Georgia Joe Lieberman's son running for Senate in Georgia California lawmaker's chief of staff resigns after indictment MORE (Ga.), John Campbell (Calif.), John Duncan (Tenn.), Jeff FlakeJeffrey (Jeff) Lane FlakeOne of life's great mysteries: Why would any conservative vote for Biden? Trump excoriates Sasse over leaked audio Biden holds 8-point lead over Trump in Arizona: poll MORE (Ariz.), Trent FranksHarold (Trent) Trent FranksArizona New Members 2019 Cook shifts 8 House races toward Dems Freedom Caucus members see openings in leadership MORE (Ariz.), Cynthia LummisCynthia Marie LummisChamber of Commerce endorses McSally for reelection Cynthia Lummis wins GOP Senate primary in Wyoming Chamber of Commerce endorses Ernst for reelection MORE (Wyo.), and Tom McClintock (Calif.).

ADVERTISEMENT

The bill is among the least controversial of the 12 annual appropriations bills but has little chance of becoming law on its own. The White House has said President Obama will veto any and all of the 12 bills until the House renounces the top-line spending level in the overall budget written by Rep. Paul RyanPaul Davis RyanMcCarthy faces pushback from anxious Republicans over interview comments Pelosi and Trump go a full year without speaking Jordan vows to back McCarthy as leader even if House loses more GOP seats MORE (R-Wis.).

The legislation cuts spending by about 3 percent compared to current levels, which Republicans said shows their ongoing commitment to trim spending. The GOP said spending by agencies covered by the bill has been cut by 20 percent over the last three budget cycles.

But similar to last year, Republicans were often split over proposals to cut further. During amendment debate, younger Republicans — including some associated with the Tea Party movement — offered amendments that would have chopped at least $3.5 billion more, but nearly all of them were defeated with the help of senior Republicans.

Among these were proposals to cut $1.2 billion from the National Science Foundation, and several amendments to cut all salaries and administrative expenses by an additional amount.

While Republicans split on these ideas, they came together in support of several funding limitations, particularly those that limited the authority of the Justice Department and Attorney General Eric HolderEric Himpton HolderAlarm grows over Trump team's efforts to monitor polls The Hill's Campaign Report: Biden on Trump: 'He'll leave' l GOP laywers brush off Trump's election remarks l Obama's endorsements Obama endorses Warnock in crowded Georgia Senate race MORE.

One of the more controversial amendments added to the bill would prevent Justice from using taxpayer funds to lie to Congress. That language, from Rep. Jason ChaffetzJason ChaffetzThe myth of the conservative bestseller Elijah Cummings, Democratic chairman and powerful Trump critic, dies at 68 House Oversight panel demands DeVos turn over personal email records MORE (R-Utah), was a reaction to GOP arguments that Justice lied to Congress about its involvement in a gun-walking program that allowed weapons to leave the United States, one of which was later used to kill a U.S. border patrol agent.

Chaffetz said during debate that Justice's purposeful decision not to tell Congress the truth about the "Fast and Furious" program was "wholly unacceptable," and his amendment was passed easily 381-41 with the support of 142 Democrats.

The House also voted to cut $1 million from the Justice Department in retaliation for the department's failure to come clean about Fast and Furious.

Additionally, members approved amendments preventing Justice from defending the 2010 healthcare law, suing states with voter ID laws and taking action against state immigration laws.

Erik Wasson contributed to this report.

Updated at 3:49 p.m.