A federal judge dismissed two key elements of a lawsuit filed against the former president and two others.