Justice Mary V. Rosado said the plan to let immigration agents into the jail presented a conflict of interest because the mayor had received special treatment from the Trump administration.