1.) If they asked for help, I would provide whatever help they need.
2.) If they asked for help, I would provide whatever help they needed.
Since no context was provided, I'm going to write this post with some assumptions. At first blush, I'm going to assume that this question is being asked in a context where the following open conditional construction is relevant:
- 3.) If they ask for help, I will provide whatever help they need.
A corresponding remote conditional construction is:
- 4.) If they asked for help, I would provide whatever help they need/needed.
The remote conditional is different front the open conditional in that, for the remote version, the speaker is expressing the opinion that it is doubtful, or somewhat doubtful, that the "they" will actually ask the speaker for help.
Modal remoteness in conditional constructions is usually expressed by changing present-tense verbs into past-tense verbs ("modal preterite" is the term for this type of usage of past-tense verbs). In this case: "ask" to "asked" and "will" to would".
When a subordinate clause (that is headed by a present-tense verb) is subordinate to a clause that is headed by a past-tense verb, then often that subordinate clause's verb will change from present-tense to past-tense. This type of change is called backshifting. Note that in your case, the subordinate clause is "whatever help they need", and the superordinate clause is "I would provide X".
Sometimes backshifting is obligatory, sometimes it is optional, sometimes it is not allowed. There are conditions under which backshifting can be done. Here is a post that goes into more detail:
In your specific example, I'd think that both versions are acceptable: the non-backshifted "need" and the backshifted "needed". The context would determine how acceptable either version is. At first blush, I'd think that the backshifted version "needed" would be the default version for most contexts. I'm sorta seeing the non-backshifted "need" as more appropriate for a context where the speaker is stressing or emphasizing the info in "whatever help they need".
To the OP: If this post is not addressing the question you are trying to ask, then please let us know and perhaps provide more context to your question.