The plan is to be as ready as possible,” said Lindsay Nash, an immigration law professor at New York University’s Cardozo School of Law who has been helping prepare emergency petitions on behalf of those who might be detained.