Congress votes to protect same-sex marriages