I suspect you're talking about 'Inherit the wind' which is (somewhat loosely) based on the famous Scopes monkey trial, and actually, Scopes was found guilty of teaching evolution contrary to state law (although it was later reversed on a technicality). However, the defence lawyer, Clarence Darrow did successfully beat a contempt charge.
Sadly, they played around with history quite considerably because the author wasn't trying to make a point about evolution, but about McCarthyism.
The difference between Scopes and now is sadly little, in many regards. An established scientific theory, backed up by reams of independent evidence is still being challenged by a religiously-motivated pseudoscientific notion backed up by no evidence whatsoever (as is even admitted by the Discovery Institute's senior fellow, Michael Medved "The important thing about Intelligent Design is that it is not a theory".)
The explicity reason ID ends up in court is because it violates the first amendment (no establishment of a religion by the state).