A federal judge has tossed out a lawsuit alleging conservative political ideology drove a prestigious, selective Justice Department hiring program during the administration of President George W. Bush.