President Donald Trump is thanking Iran for not following through on executions of more than 800 political prisoners.