Federal appeals judges rule actress can pursue both parts of her suit against Hollywood producer after lower court judge dismissed harassment claim but left defamation one intact