The university’s president said that violent protests over a statue of the Confederate general Robert E. Lee in Charlottesville, Va., had opened his eyes to what the monuments represented.