Regeringen vill ge skolor laglig möjlighet att söka igenom väskor för att förhindra skolskjutningar.