Revelation was included in lawsuit challenging practice of targeting people seeking to gain legal status as they leave immigration courts