Ruling may cost RI more time and money for convictions