In the past , Cuban , who sold an Internet company to Yahoo in 1999 for billions of dollars , has gotten into trouble in pro basketball , getting fined more than $ 1 million by the National Basketball Association for booing and cursing players .