The Torah is valid. Which parts of it are not valid? Those parts that are not compliant with the Qur'an. If there is a stipulation that is in conflict with the Qur'an, in conflict with what is Right, the Qur'an brings an explanation to it.
There are corrupted passages in the Torah and there are the true passages. Those passages that are in compliance with the Qur'an are valid.