You would have to ask that question of your travel insurance company since only an insurance adjuster/examiner can provide an accurate answer for it. I've not heard of this situation coming up before and whether it would be covered or not is something only they can answer.
If you happen to purchase the 'cancel for any reason' policy, at least you'd get most of your money back, but those policies are alot more expensive.
I once had a Federal judge refused because he was on the no-fly list and you can imagine the uproar over that one!
Unfortunately, anything anyone on this forum can provide would be pure speculation since this is a very specific question that may vary based on the insurance company and the individual policy purchased.
Best advice is to talk directly with your insurance company since each company could be different.
45 Cruises & Counting! Favorites: Paul Gauguin to Tahiti: Uniworld River Cruises in Europe; any of the Celebrity Solstice-class ships; Holland America for 12-nights in the Baltics & Russia; RCCL for 14-night Greek Isles, Turkey, & Croatia; Holland America for 14-day Alaska cruisetour; 10-night Canada/New England cruise; 21 days in Hawaii including a 7-night NCL cruise; Oceania for 25 days in Asia; & 3 months touring Europe by train. And many days spent in all-inclusive resorts!