As chancellor Rishi Sunak heads off for his summer holidays, he probably feels he can look back on a job well done.