A man accused of killing two women pleaded guilty to several charges that will put him behind bars for decades.