With surging populist movements straining alliances and Mr. Trump’s election upending the political calculations of many countries, Ukraine may be among the most vulnerable to the shifting political winds.