They weren’t. They were using approved software preinstalled on the phones given to them by their IT departments. Signal was approved during the Biden administration.
"Unmanaged 'messaging apps,' including any app with a chat feature, regardless of the primary function, are NOT authorized to access, transmit, process non-public DoD information. This includes but is not limited to messaging, gaming, and social media apps. (i.e., iMessage, WhatsApps, Signal). An Exception to Policy (E2P) request must be submitted by the appropriate Component for use of an unmanaged messaging app that is critical to fulfilling mission operations at https://rmfks.osd.mil/dode2p. "