In the books the robots adhered to the laws strictly. The problem was that humans were able to circumvent the laws rather easily. For example; lie to the robot or divide the murder trough many robots each unaware of each other.
In absence of humans the robots were perfect for deciding moral subjects( as long they have enough information ), the opposite what tomp is suggesting.