The high court will rule on Thursday on whether farmers and landowners can legally cull thousands of badgers to tackle tuberculosis in cattle.