The agreement includes defence cooperation and rare earths access, as both sides seek to reduce reliance on global powers.