The US president expressed hope that Washington and Tehran are going to "get along"