Lander, the New York City comptroller and mayoral candidate, was taken in handcuffs by officers inside a Manhattan immigration courthouse.