Texas is probably the classic example but many of the other states have similar laws: https://en.wikipedia.org/wiki/Castle_doctrine