After the verbal assault on Volodymyr Zelenskyy by Donald Trump and his vice-president JD Vance, Ukraine was facing catastrophe. The obvious risk was that Trump would work with Vladimir Putin to force an isolated Ukraine to accept a de facto Russian victory.