The Utah judge who wanted to remove a foster child from a same-sex couple has reversed his decision