Original: The effort of totally involving himself in intellectual work once again did much to restore Wittgenstein's spirits.
Simplified: This intellectual work did much to restore Wittgenstein's spirits.