It’s not just Donald Trump feuding with the courts. States are doing it, too.