Russia has indicated it is open to Ukraine joining the European Union (EU) as part of a potential peace deal to end the war, according to US officials.