The Pentagon says the Israel-Hamas war is not spreading in the region despite an attack by Iran-backed militias that killed three US soldiers at a military base in Jordan.