NJ judge deals legal setback to school districts' gender identity policy