The military action is a significant escalation in Washington’s bid to deter the growing threat from Iran-backed groups across the Middle East.