China denied the United States women an eighth consecutive team title as Qiu Qiyuan secured a dramatic victory with the final routine.