In an extraordinary exchange at the White House, the President and Prime Minister lavished each other with praise and played down the vast political gulf between them.