US retail giant Wal-Mart has said it will allow its employees in China to form a trade union.