Legislation to exonerate wrongly convicted sub-postmasters is expected to come into effect in July.