The New York Times analyzed handwritten lists of names to track the thousands of people trapped in a system where detention can be renewed indefinitely, making a mockery of the legal limits.