Ridiculing belief in creationism, however, or grading students down for maintaining such a belief despite a demonstrated grasp of the course content, would come under its provisions.
I agree with you that the marks awarded in a class must come from the demonstartion of a graps of the course content. No problem there.
However, if a professor dismisses a 6,000 year old earth with a degree of humour I would say that is totally reasonable. It is laughable nonsense. It has been reviewed and discussed dispassionatly without ridicule here and in many other places and books. If someone wishes to enter a geology classroom with an idea so thoughly discredited without haveing done any research on the topic then a humourous dismissal is the most cost effective and reasonable answer.
Would that be counter to this legislation?