Same-sex marriage will become legal in Australia after MPs passed a historic bill.

The result follows a decade of often bitter debate on the issue and a controversial national poll.