The president can not block people on twitter because he is stopping people from voicing their opinions to him directly. Twitter and every other media platform can ban your account for anything they see fit because it says so in their TOS and you give them the right to do so when you make an account.
It's silly that the president is barred from blocking people, but it does kind of hold up.