Judge’s ruling in new class-action case protects all children who could be denied citizenship under Trump’s executive order