NK School Committee decision on Foley upheld