Regret calling the cops . Pls help

So me & my husband had a fight to the point he put his hands on me . I called the cops told them what happen. They took him & I only want them to take him away from here to calm him down. We have 3 girls. They were all asleep.. At the end I wanted him to come back to us, I didn’t want him to separate from the kids . He’s in court process now.. I went & try to bail but they said no bail & since I’m the victim they said I should stay away from him.. I regret what I did. My kids need him . What should I do to bring him back to us ? Thanks