Its' come time in the NBA for coaches to have challenges, where they challenge the call of these terrible refs.
The call gets played back, and reviewed. Maybe a few per quarter.
Refs with the highest amount of "reversed challenges" get to choose a new vocation.