Lawsuit says migrants were subjected to dirty detention facilities, bad food and water