The US struck dozens of Iranian military targets overnight, and Gulf neighbors said they were fending off attacks by Tehran.