The settlement stems from a lawsuit filed by six homeless people in protest at a city ordinance that prohibits sleeping on sidewalks , and which was used by the Los Angeles police to remove the homeless from the city 's ' Skid Row ' .