The states said they were taking action in defense of the Constitution, people's right to privacy and essential funding.