The court may, of its own motion, prevent admission of evidence if it thinks it may disclose privileged information. The government need not be a party to proceedings for privilege to be raised.
The court has the authority to stop the admission of evidence if it thinks it may reveal confidential details. The government is not necessary for proceedings where the privilege is challenged.