The Victorian government says employees will be legally entitled to work from home at least two days a week by the end of the year.