SACRAMENTO — In a dramatic victory for tenant advocates, the California Assembly narrowly passed a statewide rent-cap proposal on Wednesday night amid mounting pressure for lawmakers to protect renters from the steepest of increases in a hot rental market.