Hundreds of sub-postmasters who exposed wrong-doing will now be able to recover their losses in full.