The US president criticized the policies of his predecessors, Barack Obama and Joe Biden, regarding Tehran