They get a far weaker Russia much more dependent on them now economically. Russia is rich in fossil fuels which China lacks and has some advantages in defence and space tech which China can easily get their hands on.
CCP might not be that confident about taking Taiwan now but they get a massive economic boost and a possible big brother relationship with Russia now.