People watch a CNN broadcast as ballots are counted during the Wisconsin Supreme Court election.

Wisconsin voters elected Susan Crawford to the state Supreme Court on Tuesday, the Associated Press projected, maintaining the court's 4-3 liberal majority in a setback for U.S. President Donald Trump and his billionaire ally Elon Musk, who had backed her conservative rival.