Terminally ill adults with less than six months to live will be able to access the program.
The lower house is next week expected to approve amendments before an 18-month turnaround, meaning the scheme can be operational by 2019.
It's taken more than 60 hours of debate since it was introduced by the Labor government, and will now head to the lower house for approval.
Should the lower house approve amendments next week as expected, the scheme can be operational in 18 months.
Labor Premier Daniel Andrews says it's an emotional and historic day.