Highest ever funding deal for courts