The device was purchased by Homeland Security officials under the Biden administration and cost millions, two sources said.