The Supreme Court ruled in what seem to be contradictory ways in two cases about access to spiritual advisers during executions.