The city says it’s trying to balance enforcement with ensuring landlords aren’t squeezed out of providing lower cost homes.