The sugar cookies shouldn’t do this unless you didn’t add enough flour to the dough or you didn’t chill them for long enough. If they do spread out a little, it shouldn’t matter too much. They will just have a more rustic look!