A federal judge has allowed a lawsuit over a school allegedly hiding a child's gender transition from her parents to proceed.