When the sitcom's rights holders came and knocked on his door, the playwright took legal action. Now a New York district court judge has ruled in his favor.