Wal-Mart has launched legal action against the UFCW union in the US and its protests at the retailer's stores in California.