Weil Gotshal & Manges corporate veteran Peter King is leaving the firm to take up a senior role at the Treasury.