Regarding BSD itself, there was a lawsuit between AT&T (or some successor) and UC, that was settled by UC having to delete some files from the BSD distro but then being off the hook with regard to the rest. That made it possible to freely distribute the BSD distro. The BSD distro existed long before the lawsuit, but you originally had to be a Unix licensee to get it. Then I think Berkeley tried to get rid of the AT&T files and release the rest under BSD4 but there was still some FUD. They got sued and in the settlement they agreed to delete a few more files, which removed any remaining legal clouds.
Fwiw the legal doubts about BSD during that period (pre-settlement) are basically why the Linux kernel became popular despite being far less mature than the BSD kernel at the time. People were afraid to run BSD because of the potential for AT&T lawsuits. The basic Unix userspace utilities were presumably long gone since they were full of AT&T code, but the GNU counterparts mostly existed by then.
I don't think the specifics matter much by now, but I didn't like the misstated history that I responded to.