A California judge has temporarily halted the separation of families at the U.S.-Mexico border and ordered that children taken from their parents must be reunited within a month.