A federal judge said Michael Wolff’s lawsuit against the first lady was a “contorted” attempt to prevent her from suing him for $1 billion.