President Donald Trump tried to contrast himself with former President Barack Obama's approach to Iran.