The war in Ukraine sparked a rally in crude oil and fuel prices that led to record industry profits, prompting the U.S. government and others to accuse Big Oil of profiteering and for Britain and some other governments to impose windfall taxes on energy companies.