The court said the assumption that solid waste is a problem for sanitary workers alone is neither legally correct nor practically sustainable