When New England crime boss Raymond Patriarca died in the 80s Bishop Gelineau refused to bury him so I guess this is not unprecedented.
Pre-Vatican II, I had an uncle who passed away who was married to a non-Catholic. He was not granted a funeral because he was married to a non-Catholic. This happened in the 1950s.