John Westlake, foreign secretary