Actually it does. Idaho code specifically states "A resident does not include a person who comes into this state for temporary purposes, including, but not limited to, education, vacation, or seasonal labor."
Problem being in this case is the undocumented worker fell into the "but not limited to" clause and was awarded tax payer paid medical.
I suggest voting the judge out (we can do that in Idaho) and getting on the horn to your local reps to have this section of Idaho Code rewritten to not be so "vague" on illegal aliens. I put vague in quotes because I think it's pretty clear what the intent was.