In a region where the United States has long had leverage, China has successfully grown its appeal as a partner thanks to burgeoning economic and energy ties and improved political relations. But the US retains its security and economic edge in the contest for influence.