I have been very under the impression that CBS bought Paramount's television interests, which meant that they "inherited" STAR TREK.
CBS didn't buy anything. CBS Television Studios is the corporate entity that used to be called Paramount Television, which owns Star Trek
. The name changed as the result of Viacom's corporate split.