How do transactions help resilience to system failure?
If I understand your question, the "resilience to system failure" is handled by the server to ensure that the transaction either:


Succeeds in committing the transaction.


Or:


Ensures that a non-committed transaction rolls back to the previous state.


In other words, the transaction completes successfully or else (in a failure) all the in-flight changes are undone since the transaction is incomplete.