The Justice Department first sued to block the ID requirement alongside a related law attempting to ban masks.