Brazil's president faces one of his biggest challenges yet as tens of thousands demonstrate against his cuts to education spending.