The complaint, filed in San Diego Superior Court, accuses the health system of discriminating against transgender children.