What role did political machines serve in cities?

What role did political machines serve in cities?