Shadow chancellor John McDonnell told students at a rally in London that education is "a basic human right" that must be protected.