A measure that will require landlords to allow renters to opt out of internet deals was signed into law Friday by Gov. Gavin Newsom.