Well, he usually gets the artist's permission first, and the only one that was a real issue was Coolio's Gangsta's Paradise that Al parodied with Amish Paradise.
That was a misunderstanding, and Coolio eventually stated he was okay with it.
A parody would really be a good way around these things.
Both Yankee Doodle and the Star Spangled Banner were British songs....