Forty gay couples in South Dakota applied to be married during the first month following a landmark U.S. Supreme Court decision that legalized such unions across the country, according to data provided by the state Department of Health.