Troops to be compensated for Scottish tax hikes