A widening deficit and Ukrainian strikes are testing Russia's economy, even as war in the Middle East lifts oil revenue.