Judge in Cosas 4 case slams state lawyers for ‘flouting prosecutorial obligations’