Thousands of teachers protest over education funding