A military court in the Democratic Republic of Congo on Friday sentenced 37 people to death in a trial over an "attempted coup" in May.