Details of spies and special forces were included in a massive data leak that led to thousands of Afghans being secretly relocated to the UK.