The latest measure builds upon a 2010 state law that gave homeowners the right to block a judicial sale of foreclosed property if they could prove they had applied under the federal loan modification program but the property was sold in violation.