The case is the latest that relates to Trump’s authority to install his own people at the head of federal agencies.