A Yale University professor who criticized an email warning students about insensitive Halloween costumes has chosen to stop teaching amid outrage over her response to the email.