Sanctions were applied after the social media platform delayed compliance with a federal search warrant that required Twitter to hand over Donald Trump’s Twitter data without telling the former president about the warrant for 180 days.