Multimedia messaging app Snapchat has apologised for a controversial Juneteenth themed filter that allowed users to "smile and break the chains."