The Supreme Court is obviously illegitimate. But it is the way it is due to the Senate, the electoral college, and lifetime appointments: explicitly anti-democratic, slavery-upholding institutions designed to produce a government that does not support the needs or desires of the people it governs. It was designed to be illegitimate, and it is working as intended. It always has.