Trade unions say they are worried John Swinney’s programme for government will result in public sector job losses