The legislation aims to make it more difficult for nefarious actors to use addresses of politicians as "swatting" incidents have increased in recent years.