Supreme Court sides with coach who sought to pray after game