Impact of policies during cost-of-living shocks