“This court-authorized operation to copy and remove malicious web shells from hundreds of vulnerable computers shows our commitment to use any viable resource to fight cyber criminals,” said Acting U.S. Attorney Jennifer B. Lowery of the Southern District of Texas.
"We also found a copy of '1984' on the hard drive. Boy, that could have gotten you in some hot water. Good thing that we deleted it for you. No, no need to say 'thanks', you're welcome." -FBI
The status quo for US taxpayers is to fund black hat activities like introducing new vulnerabilities, so believe it or not a move towards grey hat actions is a change for the better.
Also, thinking of any type of government work as being a pointless drain on private wealth is a bad way to think about things imo. Taxes don't even directly fund such government programs.