Slovenia will join several other countries that have legalised the practice, including Australia and Belgium.