Judge rules jury can hear 'prior bad acts' of pair accused i