A state judge threw out a portion of a Seattle ordinance requiring garbage collectors to snoop through residents’ trash in search of food waste, calling the provision unconstitutional. King County Superior Court Judge Beth M. Andrus issued an injunction against the garbage inspections but not Seattle’s residential food-waste ban, which forbids throwing away food scraps and compostable paper.