A judge has ordered the police department to produce records that could show whether the allegations by two demoted lieutenants are true