Ukraine and the United States have agreed to terms on a deal relating to critical minerals and other resources, according to a senior Ukrainian official.