The U.S. Court of Appeals for the D.C. Circuit declined to grant the Trump administration emergency relief and clear the way for Mr. Trump to remove Cook from her position.