Pete Hegseth’s comments have caused some top allies of Kyiv in Washington to worry that any diplomatic effort now may end up undermining Ukraine’s security.