There are mod tools like sandboxing spam accounts or outright suspending any account (preventing it from posting and removing all of its data from the db).
I guess that won't really scale if a popular federated server (easy to create fresh accounts) starts attracting spammers?
The entire network has never been big enough to need a comprehensive solution beyond individuals blocking content they don't like.