A large college group is handing back over £9 million to the government following a long-running clawback dispute.