President Donald Trump is thanking Iran for canceling the executions of more than 800 political prisoners.