Just before the A.C.L.U. filed its lawsuit seeking hearings for hundreds of detained legal immigrants, the lawyers involved realized their lead plaintiff had a dark past: participation in an identity theft ring.