Okafor came on in the 77th minute and scored in the 79th as Leeds won 1–0 on 7 November.
Both sides had openings, with Trafford saving efforts from Marmoush and Kudus.
He replaced Gudmundsson at half-time and helped Leeds sustain their second-half attacks.
Leeds created chances through Calvert-Lewin, Tanaka and Longstaff before the breakthrough.
Wilson and Okafor entered together. Their quick connection produced the winner.
He settled the ball inside the area and finished with his third touch of the match.
His late save from Van Hecke’s header kept Leeds ahead.
Leeds claimed their first win since 14 September. Spurs’ three-match league winning run ended.