Qatar’s emir is persona non grata to four U.S.-allied Arab states that accuse his wealthy Gulf nation of sponsoring extremists, but he recently received a warm welcome at the sprawling military base his troops share with thousands of American soldiers.