A state appeals court has weighed in on New York City’s ban on single-use food foam containers—a long-running, environmentally-focused legal battle that dates back to 2015—clearing the way for Mayor Bill de Blasio’s prohibition starting next year.

A unanimous Appellate Division, First Department panel has ruled that city Department of Sanitation Commissioner Kathryn Garcia “rationally concluded,” after detailed study, that the soft foam containers and their related products “cannot be recycled in a manner that is environmentally effective and economically feasible.”