Supreme Court appears to back Arizona on immigration