I'm a lifelong atheist and would never vote for Trump. But I know what he means when he uses the figure of speech "like a miracle". I've used it myself. I've also used "like magic".
Though I don't know if it's actually accurate because I don't know if all virus outbreaks "end" with a miraculous suddenness.