Supreme Court upholds earlier decisions by Israeli military investigators and legal authorities determining incident was a tragic mistake; human rights groups protest ruling