SAS: Who Dares Wins star Ant Middleton has been gagged by a judge after he allegedly shared military secrets on a podcast.