Court allows teacher to file case challenging Tanzania President