The ruling adds another complication for Democratic candidate Hillary Clinton as voters head to the polls over the next two months.