Does this mean all public officials are not allowed to block twitter users? Or this court ruling only works on Trump?
If the use of their account meets certain legal criteria which make it a limited public forum, yes; that's generally true of official government accounts, whether of an office or office holder, but can be true of notionally personal accounts if used for government purposes (as the court has evidence, including White House statements, was the case for Trump's “personal” account.)
Note that while Trump's Twitter account is the highest visibility case on this issue, there have been a number of similar cases regarding local government offices and officials accounts on various social media platforms with the same general result before the case about Trump's account was filed.