DOHA, Qatar — When the United States was forced to relocate its diplomatic mission from Afghanistan on Monday, it chose Qatar, a longtime mediator between the West and the Taliban and more recently the only government viewed as capable of coaxing the Afghan militants to stay engaged with the world.