An Egyptian court on Thursday acquitted 40 NGO workers in the re-trial of a case that has caused tension with the United States.