National Basketball Association approves draft lottery, player resting rules