It's grammatically all right. It means one person presented children T shirts that had words printed on them. "Kids" is informal; although he gave many shirts, there were many recipients, so, since the gifts were all shirts, generically they could all be considered one, thus gift can be singular. "Words printed on them" is a little childish (what words?), but grammatically the sentence is fine.