The city owned so many apartments that no one was certain how many there were or who lived in them, and many were doled out in a political spoils system.