Lawmakers in states across the country are belatedly moving to restore the property rights of owners who have been forced into lengthy and often costly court battles to reclaim their houses from squatters exploiting pandemic-era tenant protections to take over empty houses.