The former first minister was in the process of suing the Scottish government when he died on Saturday.