Minnesota school shootings prompt legislation