A law quashing convictions from the Horizon IT scandal was approved by Parliament on Thursday.