Photo courtesy of witn.com

A federal judge has blocked the President Trump administration and states from banning recipients of Supplemental Nutrition Assistance Program (SNAP) from purchasing candy, soda and other sugary drinks.

According to the Associated Press, U.S. District Judge Amy Berman Jackson of Washington, D.C., ruled that restrictions placed on SNAP benefits should be lifted since the federal government failed to follow its definition of food.

“The federal defendants and the states may have a genuine desire to improve the health of SNAP households by encouraging healthy choices at the store, and they can take lawful steps to meet those goals,” she wrote. “But what they cannot do is violate the law and their own regulations along the way.”

The President Trump administration didn’t say whether it will appeal the decision of Jackson, who was appointed to the bench by former President Barack Obama.

Agriculture Secretary Brooke Rollins and Health and Human Services Secretary Robert F. Kennedy Jr. have encouraged states to limit what the food aid can be used to buy as part of the “Make America Healthy Again” campaign.

They reason that soda and candy fuel obesity, diabetes and chronic disease epidemics — and taking them off the menu would encourage healthier food choices.

The Agriculture Department has given 23 states so far permission to implement restrictions. Some have been implemented already, while others are queued to take effect in the coming months and years.