Shepard Smith, the chief Fox News anchor who was disliked by President Donald Trump, stepped down after more than two decades at the network.