The Victorian government has agreed to let some residents stuck on the NSW side of the border return to Victoria and quarantine at home.