Judge: Ducey acted illegally in pushing 2016 ballot measure