The U.S. leader praised Pakistan's "really great" Prime Minister Shehbaz Sharif and powerful army chief Asim Munir for their role in brokering the talks with Iran