The accord includes American access to Ukraine’s rare earth minerals.