The 1925 Scopes “Monkey” Trial (State v. Scopes) was a real Tennessee case about teaching evolution. It did not occur in the Planet of the Apes universe, nor did it directly inspire the trial depicted in the 1968 film.
The film’s trial scene draws more from Cold War show trials and allegorical satire than from the Scopes proceedings. The Scopes Trial inspired Inherit the Wind (1960), not Planet of the Apes.