Senate passes bill safeguarding marriage equality