The government has received almost £6.5bn from two pension schemes for the mining industry since 1994, when it agreed a surplus sharing arrangement.