Bills in the House and Senate would set a 7 percent yearly cap on rents to head off excessive increases.