Putin's four-year-long invasion of Ukraine is the culmination of a quarter-century spent tightening his grip on power, crushing opponents and trying to expand Russia's influence.