If every politician did it, it must be easy to find a clip.
[0] https://en.wikipedia.org/wiki/Hijackers_in_the_September_11_...
So yes, it had no other purpose than being racist. Just like Trump didn't really care to use the time bought by the Chinese travel ban to actually develop tests or ramp up PPE. It always was a show rooted in xenophobia.
The official record is better, though. This bill calls out travel discrimination based on national origin: https://www.congress.gov/bill/116th-congress/house-bill/2214...
* we have always named diseases from where they are found, and China/Wuhan virus would have been more catchy. However that hurt the pride of Xi and suddenly we all changed our minds.
By the time a European travel ban was created, it was basically pointless because spread within the US was at wildfire levels compared to any possible contribution from international travel (the question of the morality of forcing flight crews to expose themselves to a deadly novel virus is of course quite a different one).
The story of the Trump pandemic response is taking weak action months too late.