Scottish Greens have joined the SNP and Scottish Liberal Democrats in claiming credit for the £1.8m investment.