The Labour Party has apologised for making defamatory comments about whistleblowers who appeared on a BBC Panorama episode about anti-Semitism within Labour.