Almost a year after Texas’ deadliest school shooting, state lawmakers ordered school districts to secure schools with armed officers and to train more staff to identify students who may need mental health support under legislation set to become law in September.