Scotland's Finance Secretary has been accused of using misleading figures to paint a rosier picture of NHS spending.