Russia’s president has put his country on a war footing and strengthened his grip on power.