American officials-including President Joe Biden-have thanked one nation in particular for its help in reaching the deal: Qatar, a small, oil-rich monarchy that maintains relationships with both Washington and violent Islamist movements, including Hamas.