Three key projects from Fort William to Lerwick were key to getting the SNP's spending package approved.