While Mr Sunak has a ghastly set of problems to attend to at home, part of being an effective prime minister is wielding influence abroad.