The city’s mayor said the system would both discourage overcrowding and help cover the costs of maintaining the city