Judge formally dismisses Arpaio's criminal case