The militant group Hamas , which was expected to have a strong showing , garnered just over 20 percent of the votes .