Protecting child from abuse

Does the state have an affirmative legal obligation to protect children from abuse and what happens if the state fails in this obligation? What does a “special relationship” mean explained in Deshaney v. Winnebago County?