The legislation targets tools such as RealPage’s YieldStar, which uses landlord-shared data to recommend rent increases.