Judge upholds Arizona "show-your-papers" measure in mixed ruling