The former first minister is taking the Scottish government to court over its handling of the allegations.