Ben Edelman, the associate professor at Harvard Business School who threatened legal action against a Chinese restaurant in Boston that supposedly overcharged him $4, said that he was “out of line” in a public apology.