House passes bill to give same-sex couples some rights