Leaders of small cities are becoming increasingly resistant to state housing laws, but their strategy has changed.