China and Russia have expanded military and defence ties since Moscow ordered troops into Ukraine nearly three years ago.