The US House of Representatives on Thursday gave final congressional approval to legislation that provides federal recognition of same-sex marriages, a measure born out of concern that the Supreme Court could reverse its support for legal recognition of such relationships.