Recent US sanctions on Iraq are necessary, as the Iraqi government and its banks have both publicly and privately made deals with Iran. Hopefully, after enduring a blow to its electricity sector and announcing a deal with French energy company TotalEnergies, Baghdad will end its dangerous relationship with Tehran and pursue economic deals with non-sanctioned countries.
While Iraq could eventually become a world-leading oil exporter and oblige the US' calls to become energy independent, Washington has been pushing Baghdad too hard too fast. This has led to gas shortages and a subsequent electricity crisis fueling protests in the streets. For now, Iraq still needs to import oil from Iran, or else its economic woes will continue.