The ruling comes just days after a separate court released 17 suspected Somali pirates due to lack of evidence .