Bill Cosby wins in Pennsylvania court; defamation lawsuit dismissed