What started as a cold meeting between the pontiff and the U.S. president turned friendly after a brief closed-door discussion