Freeborn, Kandiyohi and Sherburne counties have longstanding agreements with immigration authorities to detain immigrants in their county jails.