It joined the Allied Powers in World War I and acquired new territories - most notably Transylvania - following the conflict .