The Investigatory Powers Tribunal has heard that MI5 conceded unlawfully obtaining communications data twice.