A new law will prevent homeowners from being sued for defending themselves and their families against a home invader.