Italy’s ruling parties on Thursday reached a deal over removing time limits on trials, an issue which had threatened to unravel the coalition government.