Yes, it’s deeply weird that a judge would have that power. It’s like forcing a grocery store to ban a customer who’s been throwing tomatoes at people, rather than just locking up the tomato-thrower. Why would a judge have the power to punish someone who committed no crime and is just set-dress8ng for a criminal case?
Put another way: why is this judge ordering X to ban the accounts instead of ordering the account holders to delete their accounts?