Same-sex marriage bill headed to full House, Senate