NBA teams hand out some of the most lucrative contracts in professional sports, with even role players earning tens of millions of dollars per season.