The school board passed the cap to break a culture of competition that officials and some families say has pushed students to the brink.