This isn't Congress "shall make no law," the Supreme Court is making these rulings - including those about religion.
I'm assuming that when the judges rule that they're basing their rulings on some law that they see being violated. If not, then they just pulling the ruling out of the ___.