One of the nation’s best-known pastors made a surprise visit to the floor of the annual meeting of the Southern Baptist Convention.