The US has reached a framework agreement with China aimed at lifting restrictions on Chinese rare-earth mineral exports and easing certain US curbs on technology exports.