 With the final approval , and enactment of the bill on 2 July 2005 , Spain became the third country in the world to formally legalize same @-@ sex marriages nationwide , after the Netherlands and Belgium . 
