Decision follows Senate vote to reopen government, but legal saga brought uncertainty to millions who need food aid.

The ruling will have no immediate impact because of a U.S. Supreme Court decision on Friday.

The decision comes amid signals that the government shutdown could soon end and food aid payments resume.