The House of Representatives has voted to pass a historic bill protecting same-sex and interracial marriage.