The U.S. phone provider escaped a large-scale breach of its network after identifying Chinese-backed hackers early on.