Trump has staunchly denounced the nuclear pact reached between Iran and world powers led by the outgoing Obama administration, prompting the U.S. president to warn the incoming administration against undoing the deal.