Russia was condemned by many countries when it invaded Ukraine four years ago, but it found crucial support in one key ally.