A court dispute over the authorship of ex-president Václav Klaus’ controversial 2013 amnesty has ended with a settlement.