Judge allows Britney Spears to hire her own attorney