A federal judge opened a formal investigation into whether Justice Department attorneys and others within the Trump administration misrepresented the president’s plans to renovate a golf course in Washington, DC, ratcheting up a dramatic showdown between the White House and the courts.