Judge says state officials violated Occupy protesters' rights