The US and China capped two days of high-stakes trade talks with a plan to revive the flow of sensitive goods — a framework now awaiting the blessing of Donald Trump and Xi Jinping.