The U.S. and China have agreed on the broad outline of a deal to settle the controversy over Chinese telecom giant ZTE Corp., according to people with knowledge of the matter in both countries, as the two sides work toward an agreement to ease trade tensions.