Judge set to rule on teacher tenure plan