The judge overseeing Donald Trump’s civil fraud trial on Tuesday imposed a gag order — promising sanctions for any violations — on the former U.S. president and others in the case after Trump took to social media to lash out at the judge’s top law clerk.