A judge ruled in favor of the church in Huntsman’s case