Court upholds dismissal of challenge to teacher tenure law