The US military said that it had "successfully defeated" a series of Iranian missile and drone strikes in the Gulf.