Short term, this war is costing Putin dearly - both inflation and rates in Russia are very high, there's a state of technological collapse (trains derailing etc.) due to sanctions and lack of access to advanced Western technology. Ultimately, he may only benefit if he's allowed to keep the territory he conquered and gets to absorb it into Russia. It may (or may not) be worth the cost he's paying for it right now.