"劳而无功的事" can be translated into English as "a futile or unproductive endeavor" or "a task that yields no results despite effort".
Here are some more natural and concise expressions:
"a wasted effort"
"a pointless task"
"an exercise in futility" (更强调徒劳无功的意味)
Choose the one that best fits the context!