"working with federal government to censor speech" is a 1A violation on the government's side
In other cases, the platform did it all on their own. That's perfectly legal but is also rightfully seen by users as political censorship, something the EFF claims to fight even when it's not from the govt.