Patrick Bamford's first-half header was cancelled out by Tomas Soucek 10 minutes into the second period.
The Blades played the final 20 minutes with 10 men after defender Tanganga was shown a straight red card by referee Sam Allison for violent conduct against West Ham substitute Taty Castellanos.
The Blades took the lead with their first effort on target in the 12th minute, with Bamford heading home his seventh league goal of the season from close range.
Replays showed he was offside when the ball came to him from Ben Brereton Diaz.
The Hammers, without injured skipper Jarrod Bowen, were level in the 55th minute when Tomas Soucek bundled in Arne Engels' corner, with what appeared to be his arm.
The Hammers, who have now won just one of their past eight games, pressed for a winner after Tanganga's dismissal but the hosts dug deep.
Both teams are one point off the play-off places.



