Neither franchise was “bought out.” Star Trek: The Motion Picture (1979) was produced and distributed by Paramount Pictures. Star Wars (1977) was produced by Lucasfilm and distributed by 20th Century Fox. Both studios retained ownership of their respective franchises.