The agreement helps resolve one of the most contentious issues between the two former Soviet states .