They're not getting sued because they a.) filed off the serial numbers, and b.) added their own approach with the comedy. Visually it's reminiscent of Trek, but none of the design elements were outright copied. Same with the stories. Everything is sci-fi staple.