WASHINGTON — A House committee has endorsed a Republican plan to allow some schools to opt out of healthier meal standards.

The vote comes as first lady Michelle Obama campaigns in support of the standards. On Tuesday, she met with school nutrition officials who said the guidelines are working in their schools.

The rules set by Congress and the Obama administration over the past several years require more fruits, vegetables and whole grains in the lunch line. Also, there are limits on sodium, sugar and fat.

Some school nutrition directors have lobbied for a break, saying the rules have proved to be costly and restrictive.

The Republican provision in an agriculture spending bill would allow schools to opt out of the standards for the next school year if the schools are losing money on meal programs for a six-month period. The House Appropriations Committee rejected, by a 29-22 vote, a Democratic amendment that would have removed the GOP language. A subcommittee approved the spending bill last week.

Republicans have said the standards are overreach.

“Bottom line is schools are finding the regulations to be too much too quick,” said Rep. Robert Aderholt, R-Ala., who wrote the language. “They need more time.”

Democrats said they were concerned the provision was an attempt to permanently roll back the standards.

“We don’t tell kids, you don’t have to take math if it’s hard, science if it’s hard,” said California Rep. Sam Farr.