Eversheds Sutherland and Herbert Smith Freehills have advised on a deal that secures the pensions of 9,000 former BHS employees.