The rules herald the end of the city’s peculiar, decades-old tradition of letting residents place their bulging garbage bags directly on the sidewalk.