The 10 farmers at the centre of the pork contamination crisis are to receive €8m from the taxpayers to compensate them for the loss of their stock.