Even some Democrats were taken aback by the mayor’s statement, which focused mostly on criticizing Israel for its military response to Hamas’ Oct. 7, 2023 attack.