Missouri lawmakers have approved a revision to a contentious law that limits online discussion between teachers and students.