Elev og kommune skal betale millionerstatning til lærer