Law firm makes bid to legalise Hamas