In 1986, the Iran–Contra affair became a problem for the administration stemming from the use of proceeds from covert arms sales to Iran during the Iran–Iraq War to fund the Contra rebels fighting against the government in Nicaragua, which had been specifically outlawed by an act of Congress. The affair became a political scandal in the United States during the 1980s. The International Court of Justice, whose jurisdiction to decide the case was disputed by the United States, ruled that the United States had violated international law and breached treaties in Nicaragua in various ways. Reagan later withdrew the agreement between the United States and the International Court of Justice.