The former first minister successfully took the Scottish Government to court and was acquitted of a raft of sexual misconduct charges.