News Corp is nearing an agreement to purchase the consumer arm of educational publisher Houghton Mifflin Harcourt Co., according to people familiar with the matter, which would mark the media company’s second deal in less than a week.