A string of high-profile squatter cases have pushed multiple states to pass legislation to protect homeowners this year.