The Republic of Moldova, an ex-Soviet state with a majority Romanian-speaking population, signed a security and defense pact with the European Union.