Man who stole £87k worth of sheep handed prison sentenc