After some thought I have concluded that I disagree with the courts.
The reason I disagree is a simple one. Religious groups tend to be a closed loop. Sure, they may offer services to the community, but the ultimate goal is usually to convert them (look it up, it's in their holy books). Offering money for a project like this, so a church can be more enticing to those with young kids, is wrong. And, just like their corporate cousins, churches are not people. You cannot discriminate against the individual members of the congregation, but discriminating against a religious group, not just because they are religious, but based upon their practices as part of that religion, is not.
This is all part of that same mess they started by claiming that corporations are people.
"Congress shall make no law respecting an establishment of religion, or prohibiting the free exercise thereof; or abridging the freedom of speech, or of the press; or the right of the people peaceably to assemble, and to petition the Government for a redress of grievances."
How does that apply in this case? These laws have nothing to do with establishing or prohibiting religion. It does not infringe on their rights to assemble. It does not infringe on their right to petition congress.
These laws simply disallow state money from going to religious organizations whose agendas are their own.