The social-media firm, now known as X, was held in contempt for resisting the warrant and fined $350,000.