Longest-serving head of US basketball league, a lawyer by training, is credited with transforming the sport's fortunes into a $5 billion a year industry