A former immigration judge said in a new court filing that his assistant chief immigration judge directed him to grant the government’s motions to dismiss removal cases, clearing the way for immigration agents to immediately apprehend and detain those leaving court.