The Russian invasion of Ukraine has had a major effect on consumers at the pump in the United States.