The United States succeeded in 2002 and 2003 in gaining immunity for its troops from prosecution by the international court , but last June it was forced to withdraw a resolution to extend the exemption another year after it ran into widespread opposition because of the Abu Ghraib prison scandal in Iraq .