Schools spending millions to increase security