Judge: Officers involved in Freddie Gray death can sue state attorney