Judge partially blocks S.C. immigration law