But months later, Russia’s invasion of Ukraine spurred a glut of record profits for the industry, which has poured much of that revenue back into new drilling.