A federal judge has blocked enforcement of a tough Texas voter ID law just weeks ahead of the November elections.