The court couldn't block the praying. However, it could block collecting data and publishing results by anyone associated with the state school. Data gathered & results submitted for publication by any religious organization would be naturally suspect.
Still would be interesting - a court ordering that certain scientific research cannot be conducted ?
That decision would make mighty good reading ...
It would seem though that the atheists would want to see the testing proceed, and the religious folks would be the ones to block it.