Chile's congress on Tuesday approved a long-awaited bill to legalize same-sex marriage, joining just a handful of countries in majority Catholic Latin America with similar laws.