The late soul singer Isaac Hayes was friends with prominent Republicans and wouldn't have had a problem with Donald Trump using his song, an attorney for the former president has claimed in court.