State courts too. Massachusetts supreme court was the first to pull this stunt, IIRC. They got away with it.
And Mitt Romney let them.