Sweden has become the fifth European country, after the Netherlands, Belgium, Spain and Norway, to recognise same-sex marriage.
Elsewhere, Canada and South Africa have also passed such legislation, as have some US states and local authorities in other countries.
New legislation, which came into force in July, is supposed to be in place for three years and aims to reduce the number of refugees arriving in the country from the Middle East down to more manageable levels.
While Assange has maintained his innocence in the face of the sex crime allegations, he has not left Ecuador's embassy for five years, except for occasional appearances on the building's balcony.
Kabul pledged to protect its returning citizens from harassment and persecution if Stockholm covers the transport costs of their return and honours an earlier promise to give each affected family up to 70,000 kronor (£6,420).
But 300 Swedish teachers wrote an open letter to the government in the newspaper saying it undermines the education of children who have already suffered terribly. He is far from alone and now risks spending years of his development at war, in refugee camps, underground, or on the run.
Six of the seven parties in parliament backed the bill, while the Christian Democrats, one of four parties in the governing coalition, refused.
The Lutheran Church, the largest church in Sweden, has offered to bless gay partnerships since January 2007, but has still not given formal backing to the term "marriage", and will allow individual pastors to refuse to carry out gay weddings.