The City of Hayward filed a lawsuit Thursday asking a judge to intervene to protect children at an Alameda County…