China confirmed a trade framework with the US lifting curbs on rare earth exports while Washington ends punitive measures targeting Chinese firms.