Democrats broke the rules — and the court said no.