The city’s efforts to address homelessness by routinely cleaning up city sidewalks suffered a setback Thursday when a federal judge ordered officials to stop the immediate disposal of property seized in the sweeps and start videotaping items they destroy.