In his first foreign trip since taking office, the British prime minister pledged to stand by Kyiv despite new warnings of potential consequences.