It has been revealed Iran had been plotting to kill US President-elect Donald Trump during the election campaign.