The Supreme Court knew one of its new rulings could endanger democracy — and did it anyway.