WASHINGTON — One of the losers in the $1.01 trillion spending bill to keep the government running is Michelle Obama.

Among the many provisions tucked into the 1,603-page budget bill is one that would give schools a pass on serving whole grain products in students’ meals.

The bill also puts off a first lady-backed attempt to make the lunches less salty by 2017.

An organization that represents school lunch administrators and food companies praised the loosening of standards.

Unappetizing new foods and resulting drops in lunch sales are “crippling” some schools’ budgets, said Patricia Montague, head of the School Nutrition Association. The standards “were well intended, but have resulted in unintended, adverse consequences.”

With the backing of the White House, Congress passed the Healthy, Hunger-Free Kids Act in 2010 that set up mandates to reduce sodium and increase servings of whole grains and fresh fruits and vegetables in schools.

Some students and schools have rebelled, saying the whole wheat tortillas, biscuits and pizza dough are costly and just gross. Students posted pics of their ruined tacos and wilted greens under the hashtag #ThanksMichelleObama.

The number of school lunches served in America dropped by more than 1 million between 2013 and 2014, according to data released this month by the Department of Agriculture.

White House press secretary Josh Earnest declined comment Wednesday on the lunch snub, saying the legislation is still under review. “I’m confident … we’re going to find things that we are not going to like in there, but that’s the nature of bipartisan compromise.”

Republicans wanted to delay all the standards. As debate heated up, the first lady dug in, calling a rollback of standards “unacceptable.”

“We have to be willing to fight the hard fight now,” she said in May as a GOP-led committee passed legislation to allow schools to temporarily opt out of the program.

The spending bill, expected to be voted on in the House on Thursday, would exempt schools from the standards that require all grain products to be mostly whole grain if they can demonstrate difficulty in finding or affording such products.

It would also scrap the 2017 sodium standards pending further scientific study.

Other snubs of Obama’s agenda are another reduction to the Environmental Protection Agency’s budget to reduce staffing to 1989 levels and blocking Washington, DC, from legalizing marijuana.

The biggest rebuke is a decision to fund 11 of 12 departments for a full year, but the Department of Homeland Security only through February, setting up an immigration fight in the new GOP-controlled Congress.

The legislation would also allow a 10-fold increase in how much an individual could contribute to a political party per election cycle to $324,000.

It would also roll back some banking restrictions on derivatives in the Dodd-Frank financial reform bill.

Democratic leader Nancy Pelosi rebuked both riders Wednesday as “destructive to middle-class families and to the practice of our democracy.”

The budget bill will allow $64 billion for overseas defense funds to combat ISIS and nearly $5.5 billion in emergency Ebola funding — including language to reimburse Bellevue Hospital and other treatment facilities that have cared for Ebola patients.