A federal judge ruled Wednesday that President Trump and his aides cannot block critics on Twitter.