A judge rejects three appeals, saying the law “remains important in reflecting public sentiment”.