The bill, titled The Respect for Marriage Act, was passed in a 267-157 vote, with 47 Republicans joining every Democrat.