Prime Minister Sir Keir Starmer spoke with world leaders as they met in Budapest at the European Political Community summit.