Why was this transaction accepted?
This transaction attempts to exploit the recently disclosed (and fixed) vulnerability regarding the validation of duplicate inputs in a single transaction.

There is an excellent answer on this question on how that vulnerability works.