If the trainee was supported by the T32 during the time when they worked on the project (even if it wasn’t completed during the fellowship years) the grant should be credited.
Suggested language for the acknowledgments section:
“[Trainee Initials] was supported by NIH NIDCD award T32 DC017703.”