Panel of 3 judges reject appeal by prosecutors, find defendants did not act out of malice and believed they were facing an attacker who still posed danger