A federal judge on Friday said a pair of former top FBI officials could proceed in court with claims that the Justice Department violated their privacy by releasing text messages they exchanged in 2016 disparaging Donald Trump.