Families, children and victims of domestic abuse will be spared the trauma of going to court thanks to a multi-million-pound expansion of an innovative pilot across Wales and West Yorkshire.