Councilmembers unanimously passed an emergency ordinance to fix what they considered a flaw in the state’s new housing law, which went into effect in January and allowed tenant evictions from units that landlords said were going to be demolished or substantially remodeled.