Stern’s influence paved way for Cuban to buy Mavericks