The judge said the Biden administration was not implementing the prohibition as intended by the authors of the law.