The legislation would expedite hearings on housing code violations in hopes of curbing slumlord practices.