Immigrants have a right to due process in their cases. Sanctuary cities afford them the time necessary to afford them due process. They also save the Feds a lot of money because it prevents expensive deportation in cases that turn out not to require deportation.