An Australian "ISIS bride" and her child have been granted permission to return home after spending years in a Syrian refugee camp.