European court rejects Turkish teacher's plea