Two of the world’s largest oil producers said in earnings reports on Friday that they made almost $12 billion in profits during the first three months of 2022 — a time period when U.S. gas prices spiked.