Elena died during the breaking of the curse by Klaus and was brought back to life by John Gilbert's sacrifice. Elena's temporary death would break the ownership of the Salvatore home and allow any vampire to have access without an invite.
Katherine was able to bring Damon the vial of blood without being invited into the house. Elena was given the house while Katherine was captive.