Environmentalists say the war’s effects on oil and gas prices are an argument for countries to get off fossil fuels. But the reality is likely to be messier.