A federal judge halted the Education Department's Title IX guidance, which ensures protections against discrimination based on gender identity and sexual orientation.