A Swiss couple had no legal grounds for keeping their Muslim daughters out of mandatory swim classes with boys at their co-ed school, the European Court of Human Rights has ruled.