The Trump administration ended a waiver that allowed the Iraqi government to buy Iranian electricity as part of its "maximum pressure" campaign on the Islamic republic.