The military carried out strikes in Syria against facilities associated with Iranian-backed militant groups believed to be responsible for more than a dozen rocket and drone attacks on American troops.