Putin, Zelenskyy court major allies as Ukraine makes gains