The draft and the salary cap are entirely legal because they are the result of collective bargaining with the players' union. You are correct, however, that they would otherwise be illegal and could not have been unilaterally imposed by the league. On the other hand, the awarding of incentives for the hiring of minority coaches is, to my knowledge, not part of the CBA, and at any rate, a union and an employer cannot collectively bargain to allow discrimination on the basis of race.