SACRAMENTO, Calif. (AP) — The California Assembly voted Wednesday to cap rent increases for many tenants as America’s most populous state faces a housing crunch.

A bill, which now goes to the state Senate, would prohibit landlords from raising rent more than 7% plus inflation over the course of a year. The bill would not apply to newer housing or to landlords with fewer than 10 single-family homes and it would expire in 2023.

READ MORE: Person Suspected Of Shooting At Roseville Police Officer After Attempted Traffic Stop

READ ALSO: Governor Honors Oldest And Longest-Serving State Employee, 98-Year-Old May Lee

READ MORE: Big Rig Ends Up Perched Precariously On Guardrail After Crash On I-5 In Woodland

The bill’s author, Democratic Assemblyman David Chiu, said the measure will protect tenants from what he called rent gouging.

But the bill faced persistent opposition, including from Realtors, prompting some last-minute concessions narrowing the bill to win over critics.

MORE NEWS: Sacramento Mother Of 4 Killed After Stopping To Help Pedestrian Who Had Also Been Hit

Democratic Gov. Gavin Newsom called on lawmakers in his State of the State Address this year to pass legislation protecting tenants.