The deal will still need to be approved by the NBA.