The U.S. and China have agreed on the broad outlines of a reprieve for embattled Chinese telecom giant ZTE Corp. as it falters under U.S. sanctions.

President Donald Trump tweeted early last week that he would work with Chinese president Xi Jinping to get the company “back into business, fast,” defending it as part of negotiations with China.

But...