House rejects amendment to ban same-sex marriage