Rights organizations have criticized the measures , saying they threaten civil liberties and violate international law .