Qatar is one of a few countries in the region that maintains a close relationship with Washington and Tehran.