Along with fellow ex-Soviet Baltic republics Estonia and Lithuania , Latvia joined NATO and the European Union in 2004 after which it enjoyed record economic growth fuelled by easy credit and robust domestic demand .