Judge allows abortion for bipolar woman at 23 weeks