Policymakers said they would need to remain "nimble" as they weighed the impact the war had on inflation.