Judge allows ban on funds to Planned Parenthood