Many of the sanctions imposed on Iran in response to its nuclear programme were lifted in the final two years of the Obama administration as part of a deal the brokered by the US and other world powers.