A judge has ruled that the jury can be told about Steve Wright's previous convictions for the murders of five women in 2006.