A federal judge says he will rule by Dec. 31 whether to block South Carolina's tough new immigration law from taking effect.