Man sentenced to marry a goat he violated