Scottish Labour have accused the SNP of using £150 million of apprenticeship funding to plug gaps in the budget over the last five years.